aws_sdk_securitylake/client/
create_custom_log_source.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 [`CreateCustomLogSource`](crate::operation::create_custom_log_source::builders::CreateCustomLogSourceFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`source_name(impl Into<String>)`](crate::operation::create_custom_log_source::builders::CreateCustomLogSourceFluentBuilder::source_name) / [`set_source_name(Option<String>)`](crate::operation::create_custom_log_source::builders::CreateCustomLogSourceFluentBuilder::set_source_name):<br>required: **true**<br><p>Specify the name for a third-party custom source. This must be a Regionally unique value. The <code>sourceName</code> you enter here, is used in the <code>LogProviderRole</code> name which follows the convention <code>AmazonSecurityLake-Provider-{name of the custom source}-{region}</code>. You must use a <code>CustomLogSource</code> name that is shorter than or equal to 20 characters. This ensures that the <code>LogProviderRole</code> name is below the 64 character limit.</p><br>
7    ///   - [`source_version(impl Into<String>)`](crate::operation::create_custom_log_source::builders::CreateCustomLogSourceFluentBuilder::source_version) / [`set_source_version(Option<String>)`](crate::operation::create_custom_log_source::builders::CreateCustomLogSourceFluentBuilder::set_source_version):<br>required: **false**<br><p>Specify the source version for the third-party custom source, to limit log collection to a specific version of custom data source.</p><br>
8    ///   - [`event_classes(impl Into<String>)`](crate::operation::create_custom_log_source::builders::CreateCustomLogSourceFluentBuilder::event_classes) / [`set_event_classes(Option<Vec::<String>>)`](crate::operation::create_custom_log_source::builders::CreateCustomLogSourceFluentBuilder::set_event_classes):<br>required: **false**<br><p>The Open Cybersecurity Schema Framework (OCSF) event classes which describes the type of data that the custom source will send to Security Lake. For the list of supported event classes, see the <a href="https://docs.aws.amazon.com/security-lake/latest/userguide/adding-custom-sources.html#ocsf-eventclass">Amazon Security Lake User Guide</a>.</p><br>
9    ///   - [`configuration(CustomLogSourceConfiguration)`](crate::operation::create_custom_log_source::builders::CreateCustomLogSourceFluentBuilder::configuration) / [`set_configuration(Option<CustomLogSourceConfiguration>)`](crate::operation::create_custom_log_source::builders::CreateCustomLogSourceFluentBuilder::set_configuration):<br>required: **true**<br><p>The configuration used for the third-party custom source.</p><br>
10    /// - On success, responds with [`CreateCustomLogSourceOutput`](crate::operation::create_custom_log_source::CreateCustomLogSourceOutput) with field(s):
11    ///   - [`source(Option<CustomLogSourceResource>)`](crate::operation::create_custom_log_source::CreateCustomLogSourceOutput::source): <p>The third-party custom source that was created.</p>
12    /// - On failure, responds with [`SdkError<CreateCustomLogSourceError>`](crate::operation::create_custom_log_source::CreateCustomLogSourceError)
13    pub fn create_custom_log_source(&self) -> crate::operation::create_custom_log_source::builders::CreateCustomLogSourceFluentBuilder {
14        crate::operation::create_custom_log_source::builders::CreateCustomLogSourceFluentBuilder::new(self.handle.clone())
15    }
16}