aws_sdk_vpclattice/client/
create_access_log_subscription.rs

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
    /// Constructs a fluent builder for the [`CreateAccessLogSubscription`](crate::operation::create_access_log_subscription::builders::CreateAccessLogSubscriptionFluentBuilder) operation.
    ///
    /// - The fluent builder is configurable:
    ///   - [`client_token(impl Into<String>)`](crate::operation::create_access_log_subscription::builders::CreateAccessLogSubscriptionFluentBuilder::client_token) / [`set_client_token(Option<String>)`](crate::operation::create_access_log_subscription::builders::CreateAccessLogSubscriptionFluentBuilder::set_client_token):<br>required: **false**<br><p>A unique, case-sensitive identifier that you provide to ensure the idempotency of the request. If you retry a request that completed successfully using the same client token and parameters, the retry succeeds without performing any actions. If the parameters aren't identical, the retry fails.</p><br>
    ///   - [`resource_identifier(impl Into<String>)`](crate::operation::create_access_log_subscription::builders::CreateAccessLogSubscriptionFluentBuilder::resource_identifier) / [`set_resource_identifier(Option<String>)`](crate::operation::create_access_log_subscription::builders::CreateAccessLogSubscriptionFluentBuilder::set_resource_identifier):<br>required: **true**<br><p>The ID or Amazon Resource Name (ARN) of the service network or service.</p><br>
    ///   - [`destination_arn(impl Into<String>)`](crate::operation::create_access_log_subscription::builders::CreateAccessLogSubscriptionFluentBuilder::destination_arn) / [`set_destination_arn(Option<String>)`](crate::operation::create_access_log_subscription::builders::CreateAccessLogSubscriptionFluentBuilder::set_destination_arn):<br>required: **true**<br><p>The Amazon Resource Name (ARN) of the destination. The supported destination types are CloudWatch Log groups, Kinesis Data Firehose delivery streams, and Amazon S3 buckets.</p><br>
    ///   - [`tags(impl Into<String>, impl Into<String>)`](crate::operation::create_access_log_subscription::builders::CreateAccessLogSubscriptionFluentBuilder::tags) / [`set_tags(Option<HashMap::<String, String>>)`](crate::operation::create_access_log_subscription::builders::CreateAccessLogSubscriptionFluentBuilder::set_tags):<br>required: **false**<br><p>The tags for the access log subscription.</p><br>
    /// - On success, responds with [`CreateAccessLogSubscriptionOutput`](crate::operation::create_access_log_subscription::CreateAccessLogSubscriptionOutput) with field(s):
    ///   - [`id(String)`](crate::operation::create_access_log_subscription::CreateAccessLogSubscriptionOutput::id): <p>The ID of the access log subscription.</p>
    ///   - [`arn(String)`](crate::operation::create_access_log_subscription::CreateAccessLogSubscriptionOutput::arn): <p>The Amazon Resource Name (ARN) of the access log subscription.</p>
    ///   - [`resource_id(String)`](crate::operation::create_access_log_subscription::CreateAccessLogSubscriptionOutput::resource_id): <p>The ID of the service network or service.</p>
    ///   - [`resource_arn(String)`](crate::operation::create_access_log_subscription::CreateAccessLogSubscriptionOutput::resource_arn): <p>The Amazon Resource Name (ARN) of the service network or service.</p>
    ///   - [`destination_arn(String)`](crate::operation::create_access_log_subscription::CreateAccessLogSubscriptionOutput::destination_arn): <p>The Amazon Resource Name (ARN) of the log destination.</p>
    /// - On failure, responds with [`SdkError<CreateAccessLogSubscriptionError>`](crate::operation::create_access_log_subscription::CreateAccessLogSubscriptionError)
    pub fn create_access_log_subscription(
        &self,
    ) -> crate::operation::create_access_log_subscription::builders::CreateAccessLogSubscriptionFluentBuilder {
        crate::operation::create_access_log_subscription::builders::CreateAccessLogSubscriptionFluentBuilder::new(self.handle.clone())
    }
}