pub struct ResourceProvisioner {Show 37 fields
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 lambda_state: SharedLambdaState,
pub secretsmanager_state: SharedSecretsManagerState,
pub kinesis_state: SharedKinesisState,
pub kms_state: SharedKmsState,
pub ecr_state: SharedEcrState,
pub cloudwatch_state: SharedCloudWatchState,
pub elbv2_state: SharedElbv2State,
pub organizations_state: SharedOrganizationsState,
pub cognito_state: SharedCognitoState,
pub rds_state: SharedRdsState,
pub ecs_state: SharedEcsState,
pub acm_state: SharedAcmState,
pub elasticache_state: SharedElastiCacheState,
pub route53_state: SharedRoute53State,
pub cloudfront_state: SharedCloudFrontState,
pub stepfunctions_state: SharedStepFunctionsState,
pub wafv2_state: SharedWafv2State,
pub apigateway_state: SharedApiGatewayState,
pub apigatewayv2_state: SharedApiGatewayV2State,
pub ses_state: SharedSesState,
pub app_autoscaling_state: SharedApplicationAutoScalingState,
pub athena_state: SharedAthenaState,
pub firehose_state: SharedFirehoseState,
pub glue_state: SharedGlueState,
pub cloudformation_state: SharedCloudFormationState,
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§lambda_state: SharedLambdaState§secretsmanager_state: SharedSecretsManagerState§kinesis_state: SharedKinesisState§kms_state: SharedKmsState§ecr_state: SharedEcrState§cloudwatch_state: SharedCloudWatchState§elbv2_state: SharedElbv2State§organizations_state: SharedOrganizationsState§cognito_state: SharedCognitoState§rds_state: SharedRdsState§ecs_state: SharedEcsState§acm_state: SharedAcmState§elasticache_state: SharedElastiCacheState§route53_state: SharedRoute53State§cloudfront_state: SharedCloudFrontState§stepfunctions_state: SharedStepFunctionsState§wafv2_state: SharedWafv2State§apigateway_state: SharedApiGatewayState§apigatewayv2_state: SharedApiGatewayV2State§ses_state: SharedSesState§app_autoscaling_state: SharedApplicationAutoScalingState§athena_state: SharedAthenaState§firehose_state: SharedFirehoseState§glue_state: SharedGlueState§cloudformation_state: SharedCloudFormationState§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 update_resource(
&self,
existing: &StackResource,
new_def: &ResourceDefinition,
) -> Result<Option<StackResource>, String>
pub fn update_resource( &self, existing: &StackResource, new_def: &ResourceDefinition, ) -> Result<Option<StackResource>, String>
Apply a property update to an existing stack resource. Returns
Ok(Some(updated)) when the resource type supports in-place updates
(the caller swaps the resulting StackResource for the old one) or
Ok(None) when the type has no update path defined (the caller
leaves the existing resource alone). Err propagates a
resource-level failure up to the stack-level UPDATE_FAILED status.
Sourcepub fn get_att(
&self,
resource: &StackResource,
attribute: &str,
) -> Option<String>
pub fn get_att( &self, resource: &StackResource, attribute: &str, ) -> Option<String>
Resolve a Fn::GetAtt against a previously provisioned resource.
Returns the attribute value as a string, or None if the resource
type doesn’t expose that attribute (caller falls back to a placeholder
so multi-pass provisioning can retry).
The lookup first checks attributes captured at create time on the
StackResource, then falls back to live service-state queries for
the well-known attribute names of each resource type. This means
attributes that change after creation (e.g. Lambda FunctionUrl)
resolve correctly even when the URL was added in a separate pass.
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
Source§impl<Choices> CoproductSubsetter<CNil, HNil> for Choices
impl<Choices> CoproductSubsetter<CNil, HNil> for Choices
Source§impl<T> FmtForward for T
impl<T> FmtForward for T
Source§fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
self to use its Binary implementation when Debug-formatted.Source§fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
self to use its Display implementation when
Debug-formatted.Source§fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
Self: LowerExp,
fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
Self: LowerExp,
self to use its LowerExp implementation when
Debug-formatted.Source§fn fmt_lower_hex(self) -> FmtLowerHex<Self>where
Self: LowerHex,
fn fmt_lower_hex(self) -> FmtLowerHex<Self>where
Self: LowerHex,
self to use its LowerHex implementation when
Debug-formatted.Source§fn fmt_octal(self) -> FmtOctal<Self>where
Self: Octal,
fn fmt_octal(self) -> FmtOctal<Self>where
Self: Octal,
self to use its Octal implementation when Debug-formatted.Source§fn fmt_pointer(self) -> FmtPointer<Self>where
Self: Pointer,
fn fmt_pointer(self) -> FmtPointer<Self>where
Self: Pointer,
self to use its Pointer implementation when
Debug-formatted.Source§fn fmt_upper_exp(self) -> FmtUpperExp<Self>where
Self: UpperExp,
fn fmt_upper_exp(self) -> FmtUpperExp<Self>where
Self: UpperExp,
self to use its UpperExp implementation when
Debug-formatted.Source§fn fmt_upper_hex(self) -> FmtUpperHex<Self>where
Self: UpperHex,
fn fmt_upper_hex(self) -> FmtUpperHex<Self>where
Self: UpperHex,
self to use its UpperHex implementation when
Debug-formatted.Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> Pipe for Twhere
T: ?Sized,
impl<T> Pipe for Twhere
T: ?Sized,
Source§fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> Rwhere
Self: Sized,
fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> Rwhere
Self: Sized,
Source§fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> Rwhere
R: 'a,
fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> Rwhere
R: 'a,
self and passes that borrow into the pipe function. Read moreSource§fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> Rwhere
R: 'a,
fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> Rwhere
R: 'a,
self and passes that borrow into the pipe function. Read moreSource§fn pipe_borrow<'a, B, R>(&'a self, func: impl FnOnce(&'a B) -> R) -> R
fn pipe_borrow<'a, B, R>(&'a self, func: impl FnOnce(&'a B) -> R) -> R
Source§fn pipe_borrow_mut<'a, B, R>(
&'a mut self,
func: impl FnOnce(&'a mut B) -> R,
) -> R
fn pipe_borrow_mut<'a, B, R>( &'a mut self, func: impl FnOnce(&'a mut B) -> R, ) -> R
Source§fn pipe_as_ref<'a, U, R>(&'a self, func: impl FnOnce(&'a U) -> R) -> R
fn pipe_as_ref<'a, U, R>(&'a self, func: impl FnOnce(&'a U) -> R) -> R
self, then passes self.as_ref() into the pipe function.Source§fn pipe_as_mut<'a, U, R>(&'a mut self, func: impl FnOnce(&'a mut U) -> R) -> R
fn pipe_as_mut<'a, U, R>(&'a mut self, func: impl FnOnce(&'a mut U) -> R) -> R
self, then passes self.as_mut() into the pipe
function.Source§fn pipe_deref<'a, T, R>(&'a self, func: impl FnOnce(&'a T) -> R) -> R
fn pipe_deref<'a, T, R>(&'a self, func: impl FnOnce(&'a T) -> R) -> R
self, then passes self.deref() into the pipe function.Source§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> Tap for T
impl<T> Tap for T
Source§fn tap_borrow<B>(self, func: impl FnOnce(&B)) -> Self
fn tap_borrow<B>(self, func: impl FnOnce(&B)) -> Self
Borrow<B> of a value. Read moreSource§fn tap_borrow_mut<B>(self, func: impl FnOnce(&mut B)) -> Self
fn tap_borrow_mut<B>(self, func: impl FnOnce(&mut B)) -> Self
BorrowMut<B> of a value. Read moreSource§fn tap_ref<R>(self, func: impl FnOnce(&R)) -> Self
fn tap_ref<R>(self, func: impl FnOnce(&R)) -> Self
AsRef<R> view of a value. Read moreSource§fn tap_ref_mut<R>(self, func: impl FnOnce(&mut R)) -> Self
fn tap_ref_mut<R>(self, func: impl FnOnce(&mut R)) -> Self
AsMut<R> view of a value. Read moreSource§fn tap_deref<T>(self, func: impl FnOnce(&T)) -> Self
fn tap_deref<T>(self, func: impl FnOnce(&T)) -> Self
Deref::Target of a value. Read moreSource§fn tap_deref_mut<T>(self, func: impl FnOnce(&mut T)) -> Self
fn tap_deref_mut<T>(self, func: impl FnOnce(&mut T)) -> Self
Deref::Target of a value. Read moreSource§fn tap_dbg(self, func: impl FnOnce(&Self)) -> Self
fn tap_dbg(self, func: impl FnOnce(&Self)) -> Self
.tap() only in debug builds, and is erased in release builds.Source§fn tap_mut_dbg(self, func: impl FnOnce(&mut Self)) -> Self
fn tap_mut_dbg(self, func: impl FnOnce(&mut Self)) -> Self
.tap_mut() only in debug builds, and is erased in release
builds.Source§fn tap_borrow_dbg<B>(self, func: impl FnOnce(&B)) -> Self
fn tap_borrow_dbg<B>(self, func: impl FnOnce(&B)) -> Self
.tap_borrow() only in debug builds, and is erased in release
builds.Source§fn tap_borrow_mut_dbg<B>(self, func: impl FnOnce(&mut B)) -> Self
fn tap_borrow_mut_dbg<B>(self, func: impl FnOnce(&mut B)) -> Self
.tap_borrow_mut() only in debug builds, and is erased in release
builds.Source§fn tap_ref_dbg<R>(self, func: impl FnOnce(&R)) -> Self
fn tap_ref_dbg<R>(self, func: impl FnOnce(&R)) -> Self
.tap_ref() only in debug builds, and is erased in release
builds.Source§fn tap_ref_mut_dbg<R>(self, func: impl FnOnce(&mut R)) -> Self
fn tap_ref_mut_dbg<R>(self, func: impl FnOnce(&mut R)) -> Self
.tap_ref_mut() only in debug builds, and is erased in release
builds.Source§fn tap_deref_dbg<T>(self, func: impl FnOnce(&T)) -> Self
fn tap_deref_dbg<T>(self, func: impl FnOnce(&T)) -> Self
.tap_deref() only in debug builds, and is erased in release
builds.