aws-sdk-apiportal 1.1.0

AWS SDK for APIPortal
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
    /// Constructs a fluent builder for the [`PutProductSharingPolicy`](crate::operation::put_product_sharing_policy::builders::PutProductSharingPolicyFluentBuilder) operation.
    ///
    /// - The fluent builder is configurable:
    ///   - [`product_id(impl Into<String>)`](crate::operation::put_product_sharing_policy::builders::PutProductSharingPolicyFluentBuilder::product_id) / [`set_product_id(Option<String>)`](crate::operation::put_product_sharing_policy::builders::PutProductSharingPolicyFluentBuilder::set_product_id):<br>required: **true**<br>The identifier of the product.<br>
    ///   - [`policy_document(impl Into<String>)`](crate::operation::put_product_sharing_policy::builders::PutProductSharingPolicyFluentBuilder::policy_document) / [`set_policy_document(Option<String>)`](crate::operation::put_product_sharing_policy::builders::PutProductSharingPolicyFluentBuilder::set_policy_document):<br>required: **true**<br>The sharing policy as a JSON resource policy document.<br>
    ///   - [`tags(impl Into<String>, impl Into<String>)`](crate::operation::put_product_sharing_policy::builders::PutProductSharingPolicyFluentBuilder::tags) / [`set_tags(Option<HashMap::<String, String>>)`](crate::operation::put_product_sharing_policy::builders::PutProductSharingPolicyFluentBuilder::set_tags):<br>required: **false**<br>Up to 50 tags per request, matching API Gateway's limit of 50 tags per resource.<br>
    /// - On success, responds with [`PutProductSharingPolicyOutput`](crate::operation::put_product_sharing_policy::PutProductSharingPolicyOutput)
    /// - On failure, responds with [`SdkError<PutProductSharingPolicyError>`](crate::operation::put_product_sharing_policy::PutProductSharingPolicyError)
    pub fn put_product_sharing_policy(&self) -> crate::operation::put_product_sharing_policy::builders::PutProductSharingPolicyFluentBuilder {
        crate::operation::put_product_sharing_policy::builders::PutProductSharingPolicyFluentBuilder::new(self.handle.clone())
    }
}