{
 "additionalProperties": false,
 "createOnlyProperties": [
  "/properties/Name"
 ],
 "definitions": {
  "CoinbaseCdpConfigurationInput": {
   "additionalProperties": false,
   "properties": {
    "ApiKeyId": {
     "maxLength": 512,
     "minLength": 1,
     "type": "string"
    },
    "ApiKeySecret": {
     "maxLength": 2048,
     "minLength": 1,
     "type": "string"
    },
    "ApiKeySecretConfig": {
     "$ref": "#/definitions/SecretReference"
    },
    "ApiKeySecretSource": {
     "$ref": "#/definitions/SecretSourceType"
    },
    "WalletSecret": {
     "maxLength": 2048,
     "minLength": 1,
     "type": "string"
    },
    "WalletSecretConfig": {
     "$ref": "#/definitions/SecretReference"
    },
    "WalletSecretSource": {
     "$ref": "#/definitions/SecretSourceType"
    }
   },
   "required": [
    "ApiKeyId"
   ],
   "type": "object"
  },
  "CoinbaseCdpConfigurationOutput": {
   "additionalProperties": false,
   "properties": {
    "ApiKeyId": {
     "maxLength": 512,
     "minLength": 1,
     "type": "string"
    },
    "ApiKeySecretArn": {
     "$ref": "#/definitions/SecretInfo"
    },
    "ApiKeySecretJsonKey": {
     "maxLength": 128,
     "minLength": 1,
     "type": "string"
    },
    "ApiKeySecretSource": {
     "$ref": "#/definitions/SecretSourceType"
    },
    "WalletSecretArn": {
     "$ref": "#/definitions/SecretInfo"
    },
    "WalletSecretJsonKey": {
     "maxLength": 128,
     "minLength": 1,
     "type": "string"
    },
    "WalletSecretSource": {
     "$ref": "#/definitions/SecretSourceType"
    }
   },
   "required": [
    "ApiKeyId",
    "ApiKeySecretArn"
   ],
   "type": "object"
  },
  "PaymentCredentialProviderVendorType": {
   "enum": [
    "CoinbaseCDP",
    "StripePrivy"
   ],
   "type": "string"
  },
  "PaymentProviderConfigurationInput": {
   "additionalProperties": false,
   "properties": {
    "CoinbaseCdpConfiguration": {
     "$ref": "#/definitions/CoinbaseCdpConfigurationInput"
    },
    "StripePrivyConfiguration": {
     "$ref": "#/definitions/StripePrivyConfigurationInput"
    }
   },
   "type": "object"
  },
  "PaymentProviderConfigurationOutput": {
   "additionalProperties": false,
   "properties": {
    "CoinbaseCdpConfiguration": {
     "$ref": "#/definitions/CoinbaseCdpConfigurationOutput"
    },
    "StripePrivyConfiguration": {
     "$ref": "#/definitions/StripePrivyConfigurationOutput"
    }
   },
   "type": "object"
  },
  "SecretInfo": {
   "additionalProperties": false,
   "properties": {
    "SecretArn": {
     "pattern": "^arn:(aws|aws-us-gov|aws-cn|aws-iso|aws-iso-b|aws-iso-e|aws-iso-f|aws-eusc):secretsmanager:[A-Za-z0-9-]{1,64}:[0-9]{12}:secret:[a-zA-Z0-9-_/+=.@!]+$",
     "type": "string"
    }
   },
   "required": [
    "SecretArn"
   ],
   "type": "object"
  },
  "SecretReference": {
   "additionalProperties": false,
   "properties": {
    "JsonKey": {
     "maxLength": 128,
     "minLength": 1,
     "type": "string"
    },
    "SecretId": {
     "maxLength": 2048,
     "minLength": 1,
     "type": "string"
    }
   },
   "required": [
    "SecretId",
    "JsonKey"
   ],
   "type": "object"
  },
  "SecretSourceType": {
   "enum": [
    "MANAGED",
    "EXTERNAL"
   ],
   "type": "string"
  },
  "StripePrivyConfigurationInput": {
   "additionalProperties": false,
   "properties": {
    "AppId": {
     "maxLength": 512,
     "minLength": 1,
     "type": "string"
    },
    "AppSecret": {
     "maxLength": 2048,
     "minLength": 1,
     "type": "string"
    },
    "AppSecretConfig": {
     "$ref": "#/definitions/SecretReference"
    },
    "AppSecretSource": {
     "$ref": "#/definitions/SecretSourceType"
    },
    "AuthorizationId": {
     "maxLength": 512,
     "minLength": 1,
     "type": "string"
    },
    "AuthorizationPrivateKey": {
     "maxLength": 4096,
     "minLength": 1,
     "type": "string"
    },
    "AuthorizationPrivateKeyConfig": {
     "$ref": "#/definitions/SecretReference"
    },
    "AuthorizationPrivateKeySource": {
     "$ref": "#/definitions/SecretSourceType"
    }
   },
   "required": [
    "AppId",
    "AuthorizationId"
   ],
   "type": "object"
  },
  "StripePrivyConfigurationOutput": {
   "additionalProperties": false,
   "properties": {
    "AppId": {
     "maxLength": 512,
     "minLength": 1,
     "type": "string"
    },
    "AppSecretArn": {
     "$ref": "#/definitions/SecretInfo"
    },
    "AppSecretJsonKey": {
     "maxLength": 128,
     "minLength": 1,
     "type": "string"
    },
    "AppSecretSource": {
     "$ref": "#/definitions/SecretSourceType"
    },
    "AuthorizationId": {
     "maxLength": 512,
     "minLength": 1,
     "type": "string"
    },
    "AuthorizationPrivateKeyArn": {
     "$ref": "#/definitions/SecretInfo"
    },
    "AuthorizationPrivateKeyJsonKey": {
     "maxLength": 128,
     "minLength": 1,
     "type": "string"
    },
    "AuthorizationPrivateKeySource": {
     "$ref": "#/definitions/SecretSourceType"
    }
   },
   "required": [
    "AppId",
    "AppSecretArn",
    "AuthorizationPrivateKeyArn",
    "AuthorizationId"
   ],
   "type": "object"
  },
  "Tag": {
   "additionalProperties": false,
   "properties": {
    "Key": {
     "maxLength": 128,
     "minLength": 1,
     "pattern": "^[a-zA-Z0-9\\s._:/=+@-]*$",
     "type": "string"
    },
    "Value": {
     "maxLength": 256,
     "minLength": 0,
     "pattern": "^[a-zA-Z0-9\\s._:/=+@-]*$",
     "type": "string"
    }
   },
   "required": [
    "Key",
    "Value"
   ],
   "type": "object"
  }
 },
 "primaryIdentifier": [
  "/properties/CredentialProviderArn"
 ],
 "properties": {
  "CreatedTime": {
   "format": "date-time",
   "type": "string"
  },
  "CredentialProviderArn": {
   "pattern": "^arn:(aws|aws-us-gov|aws-cn|aws-iso|aws-iso-b|aws-iso-e|aws-iso-f|aws-eusc):(acps|bedrock-agentcore):[A-Za-z0-9-]{1,64}:[0-9]{12}:token-vault/[a-zA-Z0-9-.]+/paymentcredentialprovider/[a-zA-Z0-9_.-]+$",
   "type": "string"
  },
  "CredentialProviderVendor": {
   "$ref": "#/definitions/PaymentCredentialProviderVendorType"
  },
  "LastUpdatedTime": {
   "format": "date-time",
   "type": "string"
  },
  "Name": {
   "maxLength": 128,
   "minLength": 1,
   "pattern": "^[a-zA-Z0-9\\-_]+$",
   "type": "string"
  },
  "ProviderConfigurationInput": {
   "$ref": "#/definitions/PaymentProviderConfigurationInput"
  },
  "ProviderConfigurationOutput": {
   "$ref": "#/definitions/PaymentProviderConfigurationOutput"
  },
  "Tags": {
   "insertionOrder": false,
   "items": {
    "$ref": "#/definitions/Tag"
   },
   "maxItems": 50,
   "type": "array"
  }
 },
 "readOnlyProperties": [
  "/properties/CredentialProviderArn",
  "/properties/ProviderConfigurationOutput",
  "/properties/CreatedTime",
  "/properties/LastUpdatedTime"
 ],
 "required": [
  "Name",
  "CredentialProviderVendor"
 ],
 "tagging": {
  "cloudFormationSystemTags": true,
  "tagOnCreate": true,
  "tagProperty": "/properties/Tags",
  "tagUpdatable": true,
  "taggable": true
 },
 "typeName": "AWS::BedrockAgentCore::PaymentCredentialProvider",
 "writeOnlyProperties": [
  "/properties/ProviderConfigurationInput"
 ]
}
