#[non_exhaustive]pub struct ResourceMappingBuilder { /* private fields */ }Expand description
A builder for ResourceMapping.
Implementations§
source§impl ResourceMappingBuilder
impl ResourceMappingBuilder
sourcepub fn resource_name(self, input: impl Into<String>) -> Self
pub fn resource_name(self, input: impl Into<String>) -> Self
Name of the resource that the resource is mapped to.
sourcepub fn set_resource_name(self, input: Option<String>) -> Self
pub fn set_resource_name(self, input: Option<String>) -> Self
Name of the resource that the resource is mapped to.
sourcepub fn get_resource_name(&self) -> &Option<String>
pub fn get_resource_name(&self) -> &Option<String>
Name of the resource that the resource is mapped to.
sourcepub fn logical_stack_name(self, input: impl Into<String>) -> Self
pub fn logical_stack_name(self, input: impl Into<String>) -> Self
The name of the CloudFormation stack this resource is mapped to.
sourcepub fn set_logical_stack_name(self, input: Option<String>) -> Self
pub fn set_logical_stack_name(self, input: Option<String>) -> Self
The name of the CloudFormation stack this resource is mapped to.
sourcepub fn get_logical_stack_name(&self) -> &Option<String>
pub fn get_logical_stack_name(&self) -> &Option<String>
The name of the CloudFormation stack this resource is mapped to.
sourcepub fn app_registry_app_name(self, input: impl Into<String>) -> Self
pub fn app_registry_app_name(self, input: impl Into<String>) -> Self
The name of the application this resource is mapped to.
sourcepub fn set_app_registry_app_name(self, input: Option<String>) -> Self
pub fn set_app_registry_app_name(self, input: Option<String>) -> Self
The name of the application this resource is mapped to.
sourcepub fn get_app_registry_app_name(&self) -> &Option<String>
pub fn get_app_registry_app_name(&self) -> &Option<String>
The name of the application this resource is mapped to.
sourcepub fn resource_group_name(self, input: impl Into<String>) -> Self
pub fn resource_group_name(self, input: impl Into<String>) -> Self
Name of the resource group that the resource is mapped to.
sourcepub fn set_resource_group_name(self, input: Option<String>) -> Self
pub fn set_resource_group_name(self, input: Option<String>) -> Self
Name of the resource group that the resource is mapped to.
sourcepub fn get_resource_group_name(&self) -> &Option<String>
pub fn get_resource_group_name(&self) -> &Option<String>
Name of the resource group that the resource is mapped to.
sourcepub fn mapping_type(self, input: ResourceMappingType) -> Self
pub fn mapping_type(self, input: ResourceMappingType) -> Self
Specifies the type of resource mapping.
- AppRegistryApp
-
The resource is mapped to another application. The name of the application is contained in the
appRegistryAppNameproperty. - CfnStack
-
The resource is mapped to a CloudFormation stack. The name of the CloudFormation stack is contained in the
logicalStackNameproperty. - Resource
-
The resource is mapped to another resource. The name of the resource is contained in the
resourceNameproperty. - ResourceGroup
-
The resource is mapped to Resource Groups. The name of the resource group is contained in the
resourceGroupNameproperty.
sourcepub fn set_mapping_type(self, input: Option<ResourceMappingType>) -> Self
pub fn set_mapping_type(self, input: Option<ResourceMappingType>) -> Self
Specifies the type of resource mapping.
- AppRegistryApp
-
The resource is mapped to another application. The name of the application is contained in the
appRegistryAppNameproperty. - CfnStack
-
The resource is mapped to a CloudFormation stack. The name of the CloudFormation stack is contained in the
logicalStackNameproperty. - Resource
-
The resource is mapped to another resource. The name of the resource is contained in the
resourceNameproperty. - ResourceGroup
-
The resource is mapped to Resource Groups. The name of the resource group is contained in the
resourceGroupNameproperty.
sourcepub fn get_mapping_type(&self) -> &Option<ResourceMappingType>
pub fn get_mapping_type(&self) -> &Option<ResourceMappingType>
Specifies the type of resource mapping.
- AppRegistryApp
-
The resource is mapped to another application. The name of the application is contained in the
appRegistryAppNameproperty. - CfnStack
-
The resource is mapped to a CloudFormation stack. The name of the CloudFormation stack is contained in the
logicalStackNameproperty. - Resource
-
The resource is mapped to another resource. The name of the resource is contained in the
resourceNameproperty. - ResourceGroup
-
The resource is mapped to Resource Groups. The name of the resource group is contained in the
resourceGroupNameproperty.
sourcepub fn physical_resource_id(self, input: PhysicalResourceId) -> Self
pub fn physical_resource_id(self, input: PhysicalResourceId) -> Self
Identifier of the physical resource.
This field is required.sourcepub fn set_physical_resource_id(self, input: Option<PhysicalResourceId>) -> Self
pub fn set_physical_resource_id(self, input: Option<PhysicalResourceId>) -> Self
Identifier of the physical resource.
sourcepub fn get_physical_resource_id(&self) -> &Option<PhysicalResourceId>
pub fn get_physical_resource_id(&self) -> &Option<PhysicalResourceId>
Identifier of the physical resource.
sourcepub fn terraform_source_name(self, input: impl Into<String>) -> Self
pub fn terraform_source_name(self, input: impl Into<String>) -> Self
The short name of the Terraform source.
sourcepub fn set_terraform_source_name(self, input: Option<String>) -> Self
pub fn set_terraform_source_name(self, input: Option<String>) -> Self
The short name of the Terraform source.
sourcepub fn get_terraform_source_name(&self) -> &Option<String>
pub fn get_terraform_source_name(&self) -> &Option<String>
The short name of the Terraform source.
sourcepub fn eks_source_name(self, input: impl Into<String>) -> Self
pub fn eks_source_name(self, input: impl Into<String>) -> Self
Name of the Amazon Elastic Kubernetes Service cluster and namespace this resource belongs to.
This parameter accepts values in "eks-cluster/namespace" format.
sourcepub fn set_eks_source_name(self, input: Option<String>) -> Self
pub fn set_eks_source_name(self, input: Option<String>) -> Self
Name of the Amazon Elastic Kubernetes Service cluster and namespace this resource belongs to.
This parameter accepts values in "eks-cluster/namespace" format.
sourcepub fn get_eks_source_name(&self) -> &Option<String>
pub fn get_eks_source_name(&self) -> &Option<String>
Name of the Amazon Elastic Kubernetes Service cluster and namespace this resource belongs to.
This parameter accepts values in "eks-cluster/namespace" format.
sourcepub fn build(self) -> Result<ResourceMapping, BuildError>
pub fn build(self) -> Result<ResourceMapping, BuildError>
Consumes the builder and constructs a ResourceMapping.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for ResourceMappingBuilder
impl Clone for ResourceMappingBuilder
source§fn clone(&self) -> ResourceMappingBuilder
fn clone(&self) -> ResourceMappingBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for ResourceMappingBuilder
impl Debug for ResourceMappingBuilder
source§impl Default for ResourceMappingBuilder
impl Default for ResourceMappingBuilder
source§fn default() -> ResourceMappingBuilder
fn default() -> ResourceMappingBuilder
source§impl PartialEq for ResourceMappingBuilder
impl PartialEq for ResourceMappingBuilder
source§fn eq(&self, other: &ResourceMappingBuilder) -> bool
fn eq(&self, other: &ResourceMappingBuilder) -> bool
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for ResourceMappingBuilder
Auto Trait Implementations§
impl Freeze for ResourceMappingBuilder
impl RefUnwindSafe for ResourceMappingBuilder
impl Send for ResourceMappingBuilder
impl Sync for ResourceMappingBuilder
impl Unpin for ResourceMappingBuilder
impl UnwindSafe for ResourceMappingBuilder
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<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 more