{
  "sourceUrl" : "https://github.com/aws-cloudformation/aws-cloudformation-rpdk.git",
  "tagging" : {
    "tagOnCreate" : false,
    "taggable" : false,
    "tagUpdatable" : false,
    "cloudFormationSystemTags" : false
  },
  "handlers" : {
    "read" : {
      "permissions" : [ "ecs:DescribeClusters" ]
    },
    "create" : {
      "permissions" : [ "ecs:DescribeClusters", "ecs:PutClusterCapacityProviders", "ecs:DescribeCapacityProviders" ]
    },
    "update" : {
      "permissions" : [ "ecs:DescribeClusters", "ecs:DescribeCapacityProviders", "ecs:PutClusterCapacityProviders" ]
    },
    "list" : {
      "permissions" : [ "ecs:DescribeClusters", "ecs:ListClusters" ]
    },
    "delete" : {
      "permissions" : [ "ecs:PutClusterCapacityProviders", "ecs:DescribeClusters" ]
    }
  },
  "typeName" : "AWS::ECS::ClusterCapacityProviderAssociations",
  "description" : "Associate a set of ECS Capacity Providers with a specified ECS Cluster",
  "createOnlyProperties" : [ "/properties/Cluster" ],
  "additionalProperties" : false,
  "primaryIdentifier" : [ "/properties/Cluster" ],
  "definitions" : {
    "DefaultCapacityProviderStrategy" : {
      "description" : "List of capacity providers to associate with the cluster",
      "type" : "array",
      "items" : {
        "$ref" : "#/definitions/CapacityProviderStrategy"
      }
    },
    "CapacityProvider" : {
      "description" : "If using ec2 auto-scaling, the name of the associated capacity provider. Otherwise FARGATE, FARGATE_SPOT.",
      "anyOf" : [ {
        "type" : "string",
        "enum" : [ "FARGATE", "FARGATE_SPOT" ]
      }, {
        "minLength" : 1,
        "type" : "string",
        "maxLength" : 2048
      } ],
      "type" : "string"
    },
    "CapacityProviders" : {
      "uniqueItems" : true,
      "description" : "List of capacity providers to associate with the cluster",
      "type" : "array",
      "items" : {
        "$ref" : "#/definitions/CapacityProvider"
      }
    },
    "Cluster" : {
      "minLength" : 1,
      "description" : "The name of the cluster",
      "type" : "string",
      "maxLength" : 2048
    },
    "CapacityProviderStrategy" : {
      "additionalProperties" : false,
      "type" : "object",
      "properties" : {
        "CapacityProvider" : {
          "$ref" : "#/definitions/CapacityProvider"
        },
        "Base" : {
          "maximum" : 100000,
          "type" : "integer",
          "minimum" : 0
        },
        "Weight" : {
          "maximum" : 1000,
          "type" : "integer",
          "minimum" : 0
        }
      },
      "required" : [ "CapacityProvider" ]
    }
  },
  "required" : [ "Cluster", "DefaultCapacityProviderStrategy" ],
  "properties" : {
    "DefaultCapacityProviderStrategy" : {
      "$ref" : "#/definitions/DefaultCapacityProviderStrategy"
    },
    "CapacityProviders" : {
      "$ref" : "#/definitions/CapacityProviders"
    },
    "Cluster" : {
      "$ref" : "#/definitions/Cluster"
    }
  }
}