[−][src]Enum cfn_custom_resource::CustomResourceEvent
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
impl<T: Debug> Debug for CustomResourceEvent<T>
[src]
impl<'de, T> Deserialize<'de> for CustomResourceEvent<T> where
T: Deserialize<'de>,
[src]
T: Deserialize<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl<T: PartialEq> PartialEq<CustomResourceEvent<T>> for CustomResourceEvent<T>
[src]
fn eq(&self, other: &CustomResourceEvent<T>) -> bool
[src]
fn ne(&self, other: &CustomResourceEvent<T>) -> bool
[src]
impl<T> StructuralPartialEq for CustomResourceEvent<T>
[src]
Auto Trait Implementations
impl<T> RefUnwindSafe for CustomResourceEvent<T> where
T: RefUnwindSafe,
T: RefUnwindSafe,
impl<T> Send for CustomResourceEvent<T> where
T: Send,
T: Send,
impl<T> Sync for CustomResourceEvent<T> where
T: Sync,
T: Sync,
impl<T> Unpin for CustomResourceEvent<T> where
T: Unpin,
T: Unpin,
impl<T> UnwindSafe for CustomResourceEvent<T> where
T: UnwindSafe,
T: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,