// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
/// Constructs a fluent builder for the [`DeleteResource`](crate::operation::delete_resource::builders::DeleteResourceFluentBuilder) operation.
///
/// - The fluent builder is configurable:
/// - [`type_name(impl Into<String>)`](crate::operation::delete_resource::builders::DeleteResourceFluentBuilder::type_name) / [`set_type_name(Option<String>)`](crate::operation::delete_resource::builders::DeleteResourceFluentBuilder::set_type_name):<br>required: **true**<br><p>The name of the resource type.</p><br>
/// - [`type_version_id(impl Into<String>)`](crate::operation::delete_resource::builders::DeleteResourceFluentBuilder::type_version_id) / [`set_type_version_id(Option<String>)`](crate::operation::delete_resource::builders::DeleteResourceFluentBuilder::set_type_version_id):<br>required: **false**<br><p>For private resource types, the type version to use in this resource operation. If you do not specify a resource version, CloudFormation uses the default version.</p><br>
/// - [`role_arn(impl Into<String>)`](crate::operation::delete_resource::builders::DeleteResourceFluentBuilder::role_arn) / [`set_role_arn(Option<String>)`](crate::operation::delete_resource::builders::DeleteResourceFluentBuilder::set_role_arn):<br>required: **false**<br><p>The Amazon Resource Name (ARN) of the Identity and Access Management (IAM) role for Cloud Control API to use when performing this resource operation. The role specified must have the permissions required for this operation. The necessary permissions for each event handler are defined in the <code> <a href="https://docs.aws.amazon.com/cloudformation-cli/latest/userguide/resource-type-schema.html#schema-properties-handlers">handlers</a> </code> section of the <a href="https://docs.aws.amazon.com/cloudformation-cli/latest/userguide/resource-type-schema.html">resource type definition schema</a>.</p> <p>If you do not specify a role, Cloud Control API uses a temporary session created using your Amazon Web Services user credentials.</p> <p>For more information, see <a href="https://docs.aws.amazon.com/cloudcontrolapi/latest/userguide/resource-operations.html#resource-operations-permissions">Specifying credentials</a> in the <i>Amazon Web Services Cloud Control API User Guide</i>.</p><br>
/// - [`client_token(impl Into<String>)`](crate::operation::delete_resource::builders::DeleteResourceFluentBuilder::client_token) / [`set_client_token(Option<String>)`](crate::operation::delete_resource::builders::DeleteResourceFluentBuilder::set_client_token):<br>required: **false**<br><p>A unique identifier to ensure the idempotency of the resource request. As a best practice, specify this token to ensure idempotency, so that Amazon Web Services Cloud Control API can accurately distinguish between request retries and new resource requests. You might retry a resource request to ensure that it was successfully received.</p> <p>A client token is valid for 36 hours once used. After that, a resource request with the same client token is treated as a new request.</p> <p>If you do not specify a client token, one is generated for inclusion in the request.</p> <p>For more information, see <a href="https://docs.aws.amazon.com/cloudcontrolapi/latest/userguide/resource-operations.html#resource-operations-idempotency">Ensuring resource operation requests are unique</a> in the <i>Amazon Web Services Cloud Control API User Guide</i>.</p><br>
/// - [`identifier(impl Into<String>)`](crate::operation::delete_resource::builders::DeleteResourceFluentBuilder::identifier) / [`set_identifier(Option<String>)`](crate::operation::delete_resource::builders::DeleteResourceFluentBuilder::set_identifier):<br>required: **true**<br><p>The identifier for the resource.</p> <p>You can specify the primary identifier, or any secondary identifier defined for the resource type in its resource schema. You can only specify one identifier. Primary identifiers can be specified as a string or JSON; secondary identifiers must be specified as JSON.</p> <p>For compound primary identifiers (that is, one that consists of multiple resource properties strung together), to specify the primary identifier as a string, list the property values <i>in the order they are specified</i> in the primary identifier definition, separated by <code>|</code>.</p> <p>For more information, see <a href="https://docs.aws.amazon.com/cloudcontrolapi/latest/userguide/resource-identifier.html">Identifying resources</a> in the <i>Amazon Web Services Cloud Control API User Guide</i>.</p><br>
/// - On success, responds with [`DeleteResourceOutput`](crate::operation::delete_resource::DeleteResourceOutput) with field(s):
/// - [`progress_event(Option<ProgressEvent>)`](crate::operation::delete_resource::DeleteResourceOutput::progress_event): <p>Represents the current status of the resource deletion request.</p> <p>After you have initiated a resource deletion request, you can monitor the progress of your request by calling <a href="https://docs.aws.amazon.com/cloudcontrolapi/latest/APIReference/API_GetResourceRequestStatus.html">GetResourceRequestStatus</a> using the <code>RequestToken</code> of the <code>ProgressEvent</code> returned by <code>DeleteResource</code>.</p>
/// - On failure, responds with [`SdkError<DeleteResourceError>`](crate::operation::delete_resource::DeleteResourceError)
pub fn delete_resource(&self) -> crate::operation::delete_resource::builders::DeleteResourceFluentBuilder {
crate::operation::delete_resource::builders::DeleteResourceFluentBuilder::new(self.handle.clone())
}
}