pub enum CustomResourceEvent<T> {
Create(CloudformationPayload<T>),
Update(CloudformationPayload<T>),
Delete(CloudformationPayload<T>),
}Expand description
Defines an event payload that is sent to a lambda function by AWS Cloud Formation. This payload is defined by AWS as the following:
{
"RequestType" : "Delete",
"RequestId" : "unique id for this delete request",
"ResponseURL" : "pre-signed-url-for-delete-response",
"ResourceType" : "Custom::MyCustomResourceType",
"LogicalResourceId" : "name of resource in template",
"StackId" : "arn:aws:cloudformation:us-east-2:namespace:stack/stack-name/guid",
"PhysicalResourceId" : "custom resource provider-defined physical id",
"ResourceProperties" : {
"key1" : "string",
"key2" : [ "list" ],
"key3" : { "key4" : "map" }
}
}The entire payload is the same for each custom resource except for the ResourceProperties section, so
that is available as a generic type for which we are able to create the schema for the resource properties
on your own.
Variants§
Create(CloudformationPayload<T>)
Defines a cloudformation payload that happens on a create of the resource.
Update(CloudformationPayload<T>)
Defines a cloudforamtion payload that happens on ab update to the resource.
Delete(CloudformationPayload<T>)
Defines a cloudforamtion payload that happens on the deletion the resource.
Trait Implementations§
Source§impl<T: Debug> Debug for CustomResourceEvent<T>
impl<T: Debug> Debug for CustomResourceEvent<T>
Source§impl<'de, T> Deserialize<'de> for CustomResourceEvent<T>where
T: Deserialize<'de>,
impl<'de, T> Deserialize<'de> for CustomResourceEvent<T>where
T: Deserialize<'de>,
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl<T: PartialEq> PartialEq for CustomResourceEvent<T>
impl<T: PartialEq> PartialEq for CustomResourceEvent<T>
impl<T> StructuralPartialEq for CustomResourceEvent<T>
Auto Trait Implementations§
impl<T> Freeze for CustomResourceEvent<T>where
T: Freeze,
impl<T> RefUnwindSafe for CustomResourceEvent<T>where
T: RefUnwindSafe,
impl<T> Send for CustomResourceEvent<T>where
T: Send,
impl<T> Sync for CustomResourceEvent<T>where
T: Sync,
impl<T> Unpin for CustomResourceEvent<T>where
T: Unpin,
impl<T> UnsafeUnpin for CustomResourceEvent<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for CustomResourceEvent<T>where
T: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more