1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
    /// Constructs a fluent builder for the [`StartLifecyclePolicyPreview`](crate::operation::start_lifecycle_policy_preview::builders::StartLifecyclePolicyPreviewFluentBuilder) operation.
    ///
    /// - The fluent builder is configurable:
    ///   - [`registry_id(impl Into<String>)`](crate::operation::start_lifecycle_policy_preview::builders::StartLifecyclePolicyPreviewFluentBuilder::registry_id) / [`set_registry_id(Option<String>)`](crate::operation::start_lifecycle_policy_preview::builders::StartLifecyclePolicyPreviewFluentBuilder::set_registry_id):<br>required: **false**<br><p>The Amazon Web Services account ID associated with the registry that contains the repository. If you do not specify a registry, the default registry is assumed.</p><br>
    ///   - [`repository_name(impl Into<String>)`](crate::operation::start_lifecycle_policy_preview::builders::StartLifecyclePolicyPreviewFluentBuilder::repository_name) / [`set_repository_name(Option<String>)`](crate::operation::start_lifecycle_policy_preview::builders::StartLifecyclePolicyPreviewFluentBuilder::set_repository_name):<br>required: **true**<br><p>The name of the repository to be evaluated.</p><br>
    ///   - [`lifecycle_policy_text(impl Into<String>)`](crate::operation::start_lifecycle_policy_preview::builders::StartLifecyclePolicyPreviewFluentBuilder::lifecycle_policy_text) / [`set_lifecycle_policy_text(Option<String>)`](crate::operation::start_lifecycle_policy_preview::builders::StartLifecyclePolicyPreviewFluentBuilder::set_lifecycle_policy_text):<br>required: **false**<br><p>The policy to be evaluated against. If you do not specify a policy, the current policy for the repository is used.</p><br>
    /// - On success, responds with [`StartLifecyclePolicyPreviewOutput`](crate::operation::start_lifecycle_policy_preview::StartLifecyclePolicyPreviewOutput) with field(s):
    ///   - [`registry_id(Option<String>)`](crate::operation::start_lifecycle_policy_preview::StartLifecyclePolicyPreviewOutput::registry_id): <p>The registry ID associated with the request.</p>
    ///   - [`repository_name(Option<String>)`](crate::operation::start_lifecycle_policy_preview::StartLifecyclePolicyPreviewOutput::repository_name): <p>The repository name associated with the request.</p>
    ///   - [`lifecycle_policy_text(Option<String>)`](crate::operation::start_lifecycle_policy_preview::StartLifecyclePolicyPreviewOutput::lifecycle_policy_text): <p>The JSON repository policy text.</p>
    ///   - [`status(Option<LifecyclePolicyPreviewStatus>)`](crate::operation::start_lifecycle_policy_preview::StartLifecyclePolicyPreviewOutput::status): <p>The status of the lifecycle policy preview request.</p>
    /// - On failure, responds with [`SdkError<StartLifecyclePolicyPreviewError>`](crate::operation::start_lifecycle_policy_preview::StartLifecyclePolicyPreviewError)
    pub fn start_lifecycle_policy_preview(
        &self,
    ) -> crate::operation::start_lifecycle_policy_preview::builders::StartLifecyclePolicyPreviewFluentBuilder {
        crate::operation::start_lifecycle_policy_preview::builders::StartLifecyclePolicyPreviewFluentBuilder::new(self.handle.clone())
    }
}