[][src]Enum cfn_custom_resource::CustomResourceEvent

pub enum CustomResourceEvent<T> {
    Create(CloudformationPayload<T>),
    Update(CloudformationPayload<T>),
    Delete(CloudformationPayload<T>),
}

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

Defines a cloudformation payload that happens on a create of the resource.

Defines a cloudforamtion payload that happens on ab update to the resource.

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]

impl<T: PartialEq> PartialEq<CustomResourceEvent<T>> for CustomResourceEvent<T>[src]

impl<T> StructuralPartialEq for CustomResourceEvent<T>[src]

Auto Trait Implementations

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> UnwindSafe for CustomResourceEvent<T> where
    T: UnwindSafe

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,