Struct aws_sdk_config::client::fluent_builders::PutResourceConfig
source · pub struct PutResourceConfig { /* private fields */ }Expand description
Fluent builder constructing a request to PutResourceConfig.
Records the configuration state for the resource provided in the request. The configuration state of a resource is represented in Config as Configuration Items. Once this API records the configuration item, you can retrieve the list of configuration items for the custom resource type using existing Config APIs.
The custom resource type must be registered with CloudFormation. This API accepts the configuration item registered with CloudFormation.
When you call this API, Config only stores configuration state of the resource provided in the request. This API does not change or remediate the configuration of the resource.
Write-only schema properites are not recorded as part of the published configuration item.
Implementations§
source§impl PutResourceConfig
impl PutResourceConfig
sourcepub async fn customize(
self
) -> Result<CustomizableOperation<PutResourceConfig, AwsResponseRetryClassifier>, SdkError<PutResourceConfigError>>
pub async fn customize(
self
) -> Result<CustomizableOperation<PutResourceConfig, AwsResponseRetryClassifier>, SdkError<PutResourceConfigError>>
Consume this builder, creating a customizable operation that can be modified before being sent. The operation’s inner http::Request can be modified as well.
sourcepub async fn send(
self
) -> Result<PutResourceConfigOutput, SdkError<PutResourceConfigError>>
pub async fn send(
self
) -> Result<PutResourceConfigOutput, SdkError<PutResourceConfigError>>
Sends the request and returns the response.
If an error occurs, an SdkError will be returned with additional details that
can be matched against.
By default, any retryable failures will be retried twice. Retry behavior is configurable with the RetryConfig, which can be set when configuring the client.
sourcepub fn resource_type(self, input: impl Into<String>) -> Self
pub fn resource_type(self, input: impl Into<String>) -> Self
The type of the resource. The custom resource type must be registered with CloudFormation.
You cannot use the organization names “amzn”, “amazon”, “alexa”, “custom” with custom resource types. It is the first part of the ResourceType up to the first ::.
sourcepub fn set_resource_type(self, input: Option<String>) -> Self
pub fn set_resource_type(self, input: Option<String>) -> Self
The type of the resource. The custom resource type must be registered with CloudFormation.
You cannot use the organization names “amzn”, “amazon”, “alexa”, “custom” with custom resource types. It is the first part of the ResourceType up to the first ::.
sourcepub fn schema_version_id(self, input: impl Into<String>) -> Self
pub fn schema_version_id(self, input: impl Into<String>) -> Self
Version of the schema registered for the ResourceType in CloudFormation.
sourcepub fn set_schema_version_id(self, input: Option<String>) -> Self
pub fn set_schema_version_id(self, input: Option<String>) -> Self
Version of the schema registered for the ResourceType in CloudFormation.
sourcepub fn resource_id(self, input: impl Into<String>) -> Self
pub fn resource_id(self, input: impl Into<String>) -> Self
Unique identifier of the resource.
sourcepub fn set_resource_id(self, input: Option<String>) -> Self
pub fn set_resource_id(self, input: Option<String>) -> Self
Unique identifier of the resource.
sourcepub fn resource_name(self, input: impl Into<String>) -> Self
pub fn resource_name(self, input: impl Into<String>) -> Self
Name of the resource.
sourcepub fn set_resource_name(self, input: Option<String>) -> Self
pub fn set_resource_name(self, input: Option<String>) -> Self
Name of the resource.
sourcepub fn configuration(self, input: impl Into<String>) -> Self
pub fn configuration(self, input: impl Into<String>) -> Self
The configuration object of the resource in valid JSON format. It must match the schema registered with CloudFormation.
The configuration JSON must not exceed 64 KB.
sourcepub fn set_configuration(self, input: Option<String>) -> Self
pub fn set_configuration(self, input: Option<String>) -> Self
The configuration object of the resource in valid JSON format. It must match the schema registered with CloudFormation.
The configuration JSON must not exceed 64 KB.
Adds a key-value pair to Tags.
To override the contents of this collection use set_tags.
Tags associated with the resource.
This field is not to be confused with the Amazon Web Services-wide tag feature for Amazon Web Services resources. Tags for PutResourceConfig are tags that you supply for the configuration items of your custom resources.
Tags associated with the resource.
This field is not to be confused with the Amazon Web Services-wide tag feature for Amazon Web Services resources. Tags for PutResourceConfig are tags that you supply for the configuration items of your custom resources.
Trait Implementations§
source§impl Clone for PutResourceConfig
impl Clone for PutResourceConfig
source§fn clone(&self) -> PutResourceConfig
fn clone(&self) -> PutResourceConfig
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more