pub struct ResourceProvisioner {
pub sqs_state: SharedSqsState,
pub sns_state: SharedSnsState,
pub ssm_state: SharedSsmState,
pub iam_state: SharedIamState,
pub s3_state: SharedS3State,
pub eventbridge_state: SharedEventBridgeState,
pub dynamodb_state: SharedDynamoDbState,
pub logs_state: SharedLogsState,
pub delivery: Arc<DeliveryBus>,
pub account_id: String,
pub region: String,
pub stack_id: String,
}Expand description
Holds references to all service states so CloudFormation can provision resources.
Fields§
§sqs_state: SharedSqsState§sns_state: SharedSnsState§ssm_state: SharedSsmState§iam_state: SharedIamState§s3_state: SharedS3State§eventbridge_state: SharedEventBridgeState§dynamodb_state: SharedDynamoDbState§logs_state: SharedLogsState§delivery: Arc<DeliveryBus>§account_id: String§region: String§stack_id: StringImplementations§
Source§impl ResourceProvisioner
impl ResourceProvisioner
Sourcepub fn create_resource(
&self,
resource: &ResourceDefinition,
) -> Result<StackResource, String>
pub fn create_resource( &self, resource: &ResourceDefinition, ) -> Result<StackResource, String>
Create a resource and return the StackResource with physical ID.
Sourcepub fn delete_resource(&self, resource: &StackResource) -> Result<(), String>
pub fn delete_resource(&self, resource: &StackResource) -> Result<(), String>
Delete a previously created resource.
Auto Trait Implementations§
impl Freeze for ResourceProvisioner
impl !RefUnwindSafe for ResourceProvisioner
impl Send for ResourceProvisioner
impl Sync for ResourceProvisioner
impl Unpin for ResourceProvisioner
impl UnsafeUnpin for ResourceProvisioner
impl !UnwindSafe for ResourceProvisioner
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