aws_sdk_kinesisanalytics/types/_input_lambda_processor_update.rs
1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2
3/// <p>Represents an update to the <a href="https://docs.aws.amazon.com/kinesisanalytics/latest/dev/API_InputLambdaProcessor.html">InputLambdaProcessor</a> that is used to preprocess the records in the stream.</p>
4#[non_exhaustive]
5#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
6pub struct InputLambdaProcessorUpdate {
7 /// <p>The Amazon Resource Name (ARN) of the new <a href="https://docs.aws.amazon.com/lambda/">AWS Lambda</a> function that is used to preprocess the records in the stream.</p><note>
8 /// <p>To specify an earlier version of the Lambda function than the latest, include the Lambda function version in the Lambda function ARN. For more information about Lambda ARNs, see <a href="/general/latest/gr/aws-arns-and-namespaces.html#arn-syntax-lambda">Example ARNs: AWS Lambda</a></p>
9 /// </note>
10 pub resource_arn_update: ::std::option::Option<::std::string::String>,
11 /// <p>The ARN of the new IAM role that is used to access the AWS Lambda function.</p>
12 pub role_arn_update: ::std::option::Option<::std::string::String>,
13}
14impl InputLambdaProcessorUpdate {
15 /// <p>The Amazon Resource Name (ARN) of the new <a href="https://docs.aws.amazon.com/lambda/">AWS Lambda</a> function that is used to preprocess the records in the stream.</p><note>
16 /// <p>To specify an earlier version of the Lambda function than the latest, include the Lambda function version in the Lambda function ARN. For more information about Lambda ARNs, see <a href="/general/latest/gr/aws-arns-and-namespaces.html#arn-syntax-lambda">Example ARNs: AWS Lambda</a></p>
17 /// </note>
18 pub fn resource_arn_update(&self) -> ::std::option::Option<&str> {
19 self.resource_arn_update.as_deref()
20 }
21 /// <p>The ARN of the new IAM role that is used to access the AWS Lambda function.</p>
22 pub fn role_arn_update(&self) -> ::std::option::Option<&str> {
23 self.role_arn_update.as_deref()
24 }
25}
26impl InputLambdaProcessorUpdate {
27 /// Creates a new builder-style object to manufacture [`InputLambdaProcessorUpdate`](crate::types::InputLambdaProcessorUpdate).
28 pub fn builder() -> crate::types::builders::InputLambdaProcessorUpdateBuilder {
29 crate::types::builders::InputLambdaProcessorUpdateBuilder::default()
30 }
31}
32
33/// A builder for [`InputLambdaProcessorUpdate`](crate::types::InputLambdaProcessorUpdate).
34#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
35#[non_exhaustive]
36pub struct InputLambdaProcessorUpdateBuilder {
37 pub(crate) resource_arn_update: ::std::option::Option<::std::string::String>,
38 pub(crate) role_arn_update: ::std::option::Option<::std::string::String>,
39}
40impl InputLambdaProcessorUpdateBuilder {
41 /// <p>The Amazon Resource Name (ARN) of the new <a href="https://docs.aws.amazon.com/lambda/">AWS Lambda</a> function that is used to preprocess the records in the stream.</p><note>
42 /// <p>To specify an earlier version of the Lambda function than the latest, include the Lambda function version in the Lambda function ARN. For more information about Lambda ARNs, see <a href="/general/latest/gr/aws-arns-and-namespaces.html#arn-syntax-lambda">Example ARNs: AWS Lambda</a></p>
43 /// </note>
44 pub fn resource_arn_update(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
45 self.resource_arn_update = ::std::option::Option::Some(input.into());
46 self
47 }
48 /// <p>The Amazon Resource Name (ARN) of the new <a href="https://docs.aws.amazon.com/lambda/">AWS Lambda</a> function that is used to preprocess the records in the stream.</p><note>
49 /// <p>To specify an earlier version of the Lambda function than the latest, include the Lambda function version in the Lambda function ARN. For more information about Lambda ARNs, see <a href="/general/latest/gr/aws-arns-and-namespaces.html#arn-syntax-lambda">Example ARNs: AWS Lambda</a></p>
50 /// </note>
51 pub fn set_resource_arn_update(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
52 self.resource_arn_update = input;
53 self
54 }
55 /// <p>The Amazon Resource Name (ARN) of the new <a href="https://docs.aws.amazon.com/lambda/">AWS Lambda</a> function that is used to preprocess the records in the stream.</p><note>
56 /// <p>To specify an earlier version of the Lambda function than the latest, include the Lambda function version in the Lambda function ARN. For more information about Lambda ARNs, see <a href="/general/latest/gr/aws-arns-and-namespaces.html#arn-syntax-lambda">Example ARNs: AWS Lambda</a></p>
57 /// </note>
58 pub fn get_resource_arn_update(&self) -> &::std::option::Option<::std::string::String> {
59 &self.resource_arn_update
60 }
61 /// <p>The ARN of the new IAM role that is used to access the AWS Lambda function.</p>
62 pub fn role_arn_update(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
63 self.role_arn_update = ::std::option::Option::Some(input.into());
64 self
65 }
66 /// <p>The ARN of the new IAM role that is used to access the AWS Lambda function.</p>
67 pub fn set_role_arn_update(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
68 self.role_arn_update = input;
69 self
70 }
71 /// <p>The ARN of the new IAM role that is used to access the AWS Lambda function.</p>
72 pub fn get_role_arn_update(&self) -> &::std::option::Option<::std::string::String> {
73 &self.role_arn_update
74 }
75 /// Consumes the builder and constructs a [`InputLambdaProcessorUpdate`](crate::types::InputLambdaProcessorUpdate).
76 pub fn build(self) -> crate::types::InputLambdaProcessorUpdate {
77 crate::types::InputLambdaProcessorUpdate {
78 resource_arn_update: self.resource_arn_update,
79 role_arn_update: self.role_arn_update,
80 }
81 }
82}