💾 Archived View for cfdocs.wetterberg.nu › crpg-ref-requests.gemini captured on 2021-12-04 at 18:04:22. Gemini links have been rewritten to link to archived content
⬅️ Previous capture (2021-12-03)
-=-=-=-=-=-=-
The template developer uses the AWS CloudFormation resource, AWS::CloudFormation::CustomResource, to specify a custom resource in a template.
AWS::CloudFormation::CustomResource
In `AWS::CloudFormation::CustomResource`, all properties are defined by the custom resource provider. There is only one required property: `ServiceToken`.
ServiceToken
The service token (an Amazon SNS topic or AWS Lambda function Amazon Resource Name) that is obtained from the custom resource provider to access the service. The service token must be in the same region in which you are creating the stack.
All other fields in the resource properties are optional and are sent, verbatim, to the custom resource provider in the request's `ResourceProperties` field. The provider defines both the names and the valid contents of these fields.
These fields are sent in JSON requests from AWS CloudFormation to the custom resource provider in the SNS topic that the provider has configured for this purpose.
RequestType
The request type is set by the AWS CloudFormation stack operation (create-stack, update-stack, or delete-stack) that was initiated by the template developer for the stack that contains the custom resource.
Must be one of: `Create`, `Update`, or `Delete`. For more information, see Custom resource request types.
ResponseURL
The response URL identifies a presigned S3 bucket that receives responses from the custom resource provider to AWS CloudFormation.
StackId
The Amazon Resource Name (ARN) that identifies the stack that contains the custom resource.
Combining the `StackId` with the `RequestId` forms a value that you can use to uniquely identify a request on a particular custom resource.
RequestId
A unique ID for the request.
Combining the `StackId` with the `RequestId` forms a value that you can use to uniquely identify a request on a particular custom resource.
ResourceType
The template developer-chosen resource type of the custom resource in the AWS CloudFormation template. Custom resource type names can be up to 60 characters long and can include alphanumeric and the following characters: `_@-`.
LogicalResourceId
The template developer-chosen name (logical ID) of the custom resource in the AWS CloudFormation template. This is provided to facilitate communication between the custom resource provider and the template developer.
PhysicalResourceId
A required custom resource provider-defined physical ID that is unique for that provider.
ResourceProperties
This field contains the contents of the `Properties` object sent by the template developer. Its contents are defined by the custom resource provider.
OldResourceProperties
Used only for `Update` requests. Contains the resource properties that were declared previous to the update request.