Resources:
  docexamplewebsocketchat902A2E60:
    Type: AWS::DynamoDB::Table
    Properties:
      KeySchema:
        - AttributeName: connection_id
          KeyType: HASH
      AttributeDefinitions:
        - AttributeName: connection_id
          AttributeType: S
      ProvisionedThroughput:
        ReadCapacityUnits: 5
        WriteCapacityUnits: 5
      TableName: doc-example-websocket-chat
    UpdateReplacePolicy: Delete
    DeletionPolicy: Delete
    Metadata:
      aws:cdk:path: python-example-code-apigateway-websocket-chat/doc-example-websocket-chat/Resource
  docexampleapigatewaywebsocketchatE8890FEB:
    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
      RoleName: doc-example-apigateway-websocket-chat
    Metadata:
      aws:cdk:path: python-example-code-apigateway-websocket-chat/doc-example-apigateway-websocket-chat/Resource
  docexampleapigatewaywebsocketchatDefaultPolicyDC1046A1:
    Type: AWS::IAM::Policy
    Properties:
      PolicyDocument:
        Statement:
          - Action:
              - dynamodb:DeleteItem
              - dynamodb:GetItem
              - dynamodb:PutItem
              - dynamodb:Scan
            Effect: Allow
            Resource:
              Fn::GetAtt:
                - docexamplewebsocketchat902A2E60
                - Arn
        Version: "2012-10-17"
      PolicyName: docexampleapigatewaywebsocketchatDefaultPolicyDC1046A1
      Roles:
        - Ref: docexampleapigatewaywebsocketchatE8890FEB
    Metadata:
      aws:cdk:path: python-example-code-apigateway-websocket-chat/doc-example-apigateway-websocket-chat/DefaultPolicy/Resource
  docexampleapigatewaywebsocketconnectC8DFF23E:
    Type: AWS::Lambda::Function
    Properties:
      Code:
        ZipFile: "# This placeholder is replaced during code example deployment."
      Role:
        Fn::GetAtt:
          - docexampleapigatewaywebsocketchatE8890FEB
          - Arn
      Environment:
        Variables:
          table_name:
            Ref: docexamplewebsocketchat902A2E60
      Handler: lambda_chat.lambda_handler
      Runtime: python3.11
    DependsOn:
      - docexampleapigatewaywebsocketchatDefaultPolicyDC1046A1
      - docexampleapigatewaywebsocketchatE8890FEB
    Metadata:
      aws:cdk:path: python-example-code-apigateway-websocket-chat/doc-example-apigateway-websocket-connect/Resource
  CDKMetadata:
    Type: AWS::CDK::Metadata
    Properties:
      Modules: aws-cdk=1.80.0,@aws-cdk/assets=1.83.0,@aws-cdk/aws-applicationautoscaling=1.83.0,@aws-cdk/aws-autoscaling-common=1.83.0,@aws-cdk/aws-cloudwatch=1.83.0,@aws-cdk/aws-codeguruprofiler=1.83.0,@aws-cdk/aws-dynamodb=1.83.0,@aws-cdk/aws-ec2=1.83.0,@aws-cdk/aws-ecr=1.83.0,@aws-cdk/aws-ecr-assets=1.83.0,@aws-cdk/aws-events=1.83.0,@aws-cdk/aws-iam=1.83.0,@aws-cdk/aws-kms=1.83.0,@aws-cdk/aws-lambda=1.83.0,@aws-cdk/aws-logs=1.83.0,@aws-cdk/aws-s3=1.83.0,@aws-cdk/aws-s3-assets=1.83.0,@aws-cdk/aws-sqs=1.83.0,@aws-cdk/aws-ssm=1.83.0,@aws-cdk/cloud-assembly-schema=1.83.0,@aws-cdk/core=1.83.0,@aws-cdk/custom-resources=1.83.0,@aws-cdk/cx-api=1.83.0,@aws-cdk/region-info=1.83.0,jsii-runtime=node.js/v14.15.2
    Metadata:
      aws:cdk:path: python-example-code-apigateway-websocket-chat/CDKMetadata/Default
    Condition: CDKMetadataAvailable
Conditions:
  CDKMetadataAvailable:
    Fn::Or:
      - Fn::Or:
          - 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-south-1
          - Fn::Equals:
              - Ref: AWS::Region
              - ap-southeast-1
          - Fn::Equals:
              - Ref: AWS::Region
              - ap-southeast-2
          - Fn::Equals:
              - Ref: AWS::Region
              - ca-central-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::Or:
          - Fn::Equals:
              - Ref: AWS::Region
              - eu-north-1
          - 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
              - 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

