getCloudService

Returns a service object for a cloud service such as Amazon S3, SQS, SNS, DynamoDB, AWS Lambda, Azure Blob or Azure Service Bus. CF 2023+ also supports Google Cloud Storage, Firestore and Pub/Sub.

getCloudService(vendorCredential, serviceConfig) → returns any

This function requires Adobe ColdFusion 2021 and up.  Not supported on Lucee, etc.

Argument Reference

vendorCredential any
Required

Credentials for the cloud vendor: either a struct, or the name of a credential alias defined in the ColdFusion Administrator or Application.cfc.

serviceConfig any
Required

Service configuration: either a struct (with a serviceName key such as S3, SQS, SNS, DYNAMODB, AZURE_BLOB or SERVICE_BUS), or the name of a config alias. CF 2023+ For GCP, set vendorName to GCP and serviceName to STORAGE, FIRESTORE or PUBSUB.

Links more information about getCloudService

Examples
Sample code invoking the getCloudService function

Signup for cfbreak to stay updated on the latest news from the ColdFusion / CFML community. One email, every friday.

Fork me on GitHub