Struct aws_sdk_config::types::builders::ResourceDetailsBuilder
source · #[non_exhaustive]pub struct ResourceDetailsBuilder { /* private fields */ }Expand description
A builder for ResourceDetails.
Implementations§
source§impl ResourceDetailsBuilder
impl ResourceDetailsBuilder
sourcepub fn resource_id(self, input: impl Into<String>) -> Self
pub fn resource_id(self, input: impl Into<String>) -> Self
A unique resource ID for an evaluation.
This field is required.sourcepub fn set_resource_id(self, input: Option<String>) -> Self
pub fn set_resource_id(self, input: Option<String>) -> Self
A unique resource ID for an evaluation.
sourcepub fn get_resource_id(&self) -> &Option<String>
pub fn get_resource_id(&self) -> &Option<String>
A unique resource ID for an evaluation.
sourcepub fn resource_type(self, input: impl Into<String>) -> Self
pub fn resource_type(self, input: impl Into<String>) -> Self
The type of resource being evaluated.
This field is required.sourcepub fn set_resource_type(self, input: Option<String>) -> Self
pub fn set_resource_type(self, input: Option<String>) -> Self
The type of resource being evaluated.
sourcepub fn get_resource_type(&self) -> &Option<String>
pub fn get_resource_type(&self) -> &Option<String>
The type of resource being evaluated.
sourcepub fn resource_configuration(self, input: impl Into<String>) -> Self
pub fn resource_configuration(self, input: impl Into<String>) -> Self
The resource definition to be evaluated as per the resource configuration schema type.
This field is required.sourcepub fn set_resource_configuration(self, input: Option<String>) -> Self
pub fn set_resource_configuration(self, input: Option<String>) -> Self
The resource definition to be evaluated as per the resource configuration schema type.
sourcepub fn get_resource_configuration(&self) -> &Option<String>
pub fn get_resource_configuration(&self) -> &Option<String>
The resource definition to be evaluated as per the resource configuration schema type.
sourcepub fn resource_configuration_schema_type(
self,
input: ResourceConfigurationSchemaType,
) -> Self
pub fn resource_configuration_schema_type( self, input: ResourceConfigurationSchemaType, ) -> Self
The schema type of the resource configuration.
You can find the Resource type schema, or CFN_RESOURCE_SCHEMA, in "Amazon Web Services public extensions" within the CloudFormation registry or with the following CLI commmand: aws cloudformation describe-type --type-name "AWS::S3::Bucket" --type RESOURCE.
For more information, see Managing extensions through the CloudFormation registry and Amazon Web Services resource and property types reference in the CloudFormation User Guide.
sourcepub fn set_resource_configuration_schema_type(
self,
input: Option<ResourceConfigurationSchemaType>,
) -> Self
pub fn set_resource_configuration_schema_type( self, input: Option<ResourceConfigurationSchemaType>, ) -> Self
The schema type of the resource configuration.
You can find the Resource type schema, or CFN_RESOURCE_SCHEMA, in "Amazon Web Services public extensions" within the CloudFormation registry or with the following CLI commmand: aws cloudformation describe-type --type-name "AWS::S3::Bucket" --type RESOURCE.
For more information, see Managing extensions through the CloudFormation registry and Amazon Web Services resource and property types reference in the CloudFormation User Guide.
sourcepub fn get_resource_configuration_schema_type(
&self,
) -> &Option<ResourceConfigurationSchemaType>
pub fn get_resource_configuration_schema_type( &self, ) -> &Option<ResourceConfigurationSchemaType>
The schema type of the resource configuration.
You can find the Resource type schema, or CFN_RESOURCE_SCHEMA, in "Amazon Web Services public extensions" within the CloudFormation registry or with the following CLI commmand: aws cloudformation describe-type --type-name "AWS::S3::Bucket" --type RESOURCE.
For more information, see Managing extensions through the CloudFormation registry and Amazon Web Services resource and property types reference in the CloudFormation User Guide.
sourcepub fn build(self) -> Result<ResourceDetails, BuildError>
pub fn build(self) -> Result<ResourceDetails, BuildError>
Consumes the builder and constructs a ResourceDetails.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for ResourceDetailsBuilder
impl Clone for ResourceDetailsBuilder
source§fn clone(&self) -> ResourceDetailsBuilder
fn clone(&self) -> ResourceDetailsBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for ResourceDetailsBuilder
impl Debug for ResourceDetailsBuilder
source§impl Default for ResourceDetailsBuilder
impl Default for ResourceDetailsBuilder
source§fn default() -> ResourceDetailsBuilder
fn default() -> ResourceDetailsBuilder
source§impl PartialEq for ResourceDetailsBuilder
impl PartialEq for ResourceDetailsBuilder
source§fn eq(&self, other: &ResourceDetailsBuilder) -> bool
fn eq(&self, other: &ResourceDetailsBuilder) -> bool
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for ResourceDetailsBuilder
Auto Trait Implementations§
impl Freeze for ResourceDetailsBuilder
impl RefUnwindSafe for ResourceDetailsBuilder
impl Send for ResourceDetailsBuilder
impl Sync for ResourceDetailsBuilder
impl Unpin for ResourceDetailsBuilder
impl UnwindSafe for ResourceDetailsBuilder
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit)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