aws_sdk_guardduty/client/create_ip_set.rs
1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2impl super::Client {
3 /// Constructs a fluent builder for the [`CreateIPSet`](crate::operation::create_ip_set::builders::CreateIPSetFluentBuilder) operation.
4 ///
5 /// - The fluent builder is configurable:
6 /// - [`detector_id(impl Into<String>)`](crate::operation::create_ip_set::builders::CreateIPSetFluentBuilder::detector_id) / [`set_detector_id(Option<String>)`](crate::operation::create_ip_set::builders::CreateIPSetFluentBuilder::set_detector_id):<br>required: **true**<br><p>The unique ID of the detector of the GuardDuty account for which you want to create an IPSet.</p> <p>To find the <code>detectorId</code> in the current Region, see the Settings page in the GuardDuty console, or run the <a href="https://docs.aws.amazon.com/guardduty/latest/APIReference/API_ListDetectors.html">ListDetectors</a> API.</p><br>
7 /// - [`name(impl Into<String>)`](crate::operation::create_ip_set::builders::CreateIPSetFluentBuilder::name) / [`set_name(Option<String>)`](crate::operation::create_ip_set::builders::CreateIPSetFluentBuilder::set_name):<br>required: **true**<br><p>The user-friendly name to identify the IPSet.</p> <p>Allowed characters are alphanumeric, whitespace, dash (-), and underscores (_).</p><br>
8 /// - [`format(IpSetFormat)`](crate::operation::create_ip_set::builders::CreateIPSetFluentBuilder::format) / [`set_format(Option<IpSetFormat>)`](crate::operation::create_ip_set::builders::CreateIPSetFluentBuilder::set_format):<br>required: **true**<br><p>The format of the file that contains the IPSet.</p><br>
9 /// - [`location(impl Into<String>)`](crate::operation::create_ip_set::builders::CreateIPSetFluentBuilder::location) / [`set_location(Option<String>)`](crate::operation::create_ip_set::builders::CreateIPSetFluentBuilder::set_location):<br>required: **true**<br><p>The URI of the file that contains the IPSet.</p><br>
10 /// - [`activate(bool)`](crate::operation::create_ip_set::builders::CreateIPSetFluentBuilder::activate) / [`set_activate(Option<bool>)`](crate::operation::create_ip_set::builders::CreateIPSetFluentBuilder::set_activate):<br>required: **true**<br><p>A Boolean value that indicates whether GuardDuty is to start using the uploaded IPSet.</p><br>
11 /// - [`client_token(impl Into<String>)`](crate::operation::create_ip_set::builders::CreateIPSetFluentBuilder::client_token) / [`set_client_token(Option<String>)`](crate::operation::create_ip_set::builders::CreateIPSetFluentBuilder::set_client_token):<br>required: **false**<br><p>The idempotency token for the create request.</p><br>
12 /// - [`tags(impl Into<String>, impl Into<String>)`](crate::operation::create_ip_set::builders::CreateIPSetFluentBuilder::tags) / [`set_tags(Option<HashMap::<String, String>>)`](crate::operation::create_ip_set::builders::CreateIPSetFluentBuilder::set_tags):<br>required: **false**<br><p>The tags to be added to a new IP set resource.</p><br>
13 /// - [`expected_bucket_owner(impl Into<String>)`](crate::operation::create_ip_set::builders::CreateIPSetFluentBuilder::expected_bucket_owner) / [`set_expected_bucket_owner(Option<String>)`](crate::operation::create_ip_set::builders::CreateIPSetFluentBuilder::set_expected_bucket_owner):<br>required: **false**<br><p>The Amazon Web Services account ID that owns the Amazon S3 bucket specified in the <b>location</b> parameter.</p><br>
14 /// - On success, responds with [`CreateIpSetOutput`](crate::operation::create_ip_set::CreateIpSetOutput) with field(s):
15 /// - [`ip_set_id(Option<String>)`](crate::operation::create_ip_set::CreateIpSetOutput::ip_set_id): <p>The ID of the IPSet resource.</p>
16 /// - On failure, responds with [`SdkError<CreateIPSetError>`](crate::operation::create_ip_set::CreateIPSetError)
17 pub fn create_ip_set(&self) -> crate::operation::create_ip_set::builders::CreateIPSetFluentBuilder {
18 crate::operation::create_ip_set::builders::CreateIPSetFluentBuilder::new(self.handle.clone())
19 }
20}