aws_sdk_grafana/operation/create_workspace/builders.rs
1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2pub use crate::operation::create_workspace::_create_workspace_output::CreateWorkspaceOutputBuilder;
3
4pub use crate::operation::create_workspace::_create_workspace_input::CreateWorkspaceInputBuilder;
5
6impl crate::operation::create_workspace::builders::CreateWorkspaceInputBuilder {
7 /// Sends a request with this input using the given client.
8 pub async fn send_with(
9 self,
10 client: &crate::Client,
11 ) -> ::std::result::Result<
12 crate::operation::create_workspace::CreateWorkspaceOutput,
13 ::aws_smithy_runtime_api::client::result::SdkError<
14 crate::operation::create_workspace::CreateWorkspaceError,
15 ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
16 >,
17 > {
18 let mut fluent_builder = client.create_workspace();
19 fluent_builder.inner = self;
20 fluent_builder.send().await
21 }
22}
23/// Fluent builder constructing a request to `CreateWorkspace`.
24///
25/// <p>Creates a <i>workspace</i>. In a workspace, you can create Grafana dashboards and visualizations to analyze your metrics, logs, and traces. You don't have to build, package, or deploy any hardware to run the Grafana server.</p>
26/// <p>Don't use <code>CreateWorkspace</code> to modify an existing workspace. Instead, use <a href="https://docs.aws.amazon.com/grafana/latest/APIReference/API_UpdateWorkspace.html">UpdateWorkspace</a>.</p>
27#[derive(::std::clone::Clone, ::std::fmt::Debug)]
28pub struct CreateWorkspaceFluentBuilder {
29 handle: ::std::sync::Arc<crate::client::Handle>,
30 inner: crate::operation::create_workspace::builders::CreateWorkspaceInputBuilder,
31 config_override: ::std::option::Option<crate::config::Builder>,
32}
33impl
34 crate::client::customize::internal::CustomizableSend<
35 crate::operation::create_workspace::CreateWorkspaceOutput,
36 crate::operation::create_workspace::CreateWorkspaceError,
37 > for CreateWorkspaceFluentBuilder
38{
39 fn send(
40 self,
41 config_override: crate::config::Builder,
42 ) -> crate::client::customize::internal::BoxFuture<
43 crate::client::customize::internal::SendResult<
44 crate::operation::create_workspace::CreateWorkspaceOutput,
45 crate::operation::create_workspace::CreateWorkspaceError,
46 >,
47 > {
48 ::std::boxed::Box::pin(async move { self.config_override(config_override).send().await })
49 }
50}
51impl CreateWorkspaceFluentBuilder {
52 /// Creates a new `CreateWorkspaceFluentBuilder`.
53 pub(crate) fn new(handle: ::std::sync::Arc<crate::client::Handle>) -> Self {
54 Self {
55 handle,
56 inner: ::std::default::Default::default(),
57 config_override: ::std::option::Option::None,
58 }
59 }
60 /// Access the CreateWorkspace as a reference.
61 pub fn as_input(&self) -> &crate::operation::create_workspace::builders::CreateWorkspaceInputBuilder {
62 &self.inner
63 }
64 /// Sends the request and returns the response.
65 ///
66 /// If an error occurs, an `SdkError` will be returned with additional details that
67 /// can be matched against.
68 ///
69 /// By default, any retryable failures will be retried twice. Retry behavior
70 /// is configurable with the [RetryConfig](aws_smithy_types::retry::RetryConfig), which can be
71 /// set when configuring the client.
72 pub async fn send(
73 self,
74 ) -> ::std::result::Result<
75 crate::operation::create_workspace::CreateWorkspaceOutput,
76 ::aws_smithy_runtime_api::client::result::SdkError<
77 crate::operation::create_workspace::CreateWorkspaceError,
78 ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
79 >,
80 > {
81 let input = self
82 .inner
83 .build()
84 .map_err(::aws_smithy_runtime_api::client::result::SdkError::construction_failure)?;
85 let runtime_plugins = crate::operation::create_workspace::CreateWorkspace::operation_runtime_plugins(
86 self.handle.runtime_plugins.clone(),
87 &self.handle.conf,
88 self.config_override,
89 );
90 crate::operation::create_workspace::CreateWorkspace::orchestrate(&runtime_plugins, input).await
91 }
92
93 /// Consumes this builder, creating a customizable operation that can be modified before being sent.
94 pub fn customize(
95 self,
96 ) -> crate::client::customize::CustomizableOperation<
97 crate::operation::create_workspace::CreateWorkspaceOutput,
98 crate::operation::create_workspace::CreateWorkspaceError,
99 Self,
100 > {
101 crate::client::customize::CustomizableOperation::new(self)
102 }
103 pub(crate) fn config_override(mut self, config_override: impl ::std::convert::Into<crate::config::Builder>) -> Self {
104 self.set_config_override(::std::option::Option::Some(config_override.into()));
105 self
106 }
107
108 pub(crate) fn set_config_override(&mut self, config_override: ::std::option::Option<crate::config::Builder>) -> &mut Self {
109 self.config_override = config_override;
110 self
111 }
112 /// <p>Specifies whether the workspace can access Amazon Web Services resources in this Amazon Web Services account only, or whether it can also access Amazon Web Services resources in other accounts in the same organization. If you specify <code>ORGANIZATION</code>, you must specify which organizational units the workspace can access in the <code>workspaceOrganizationalUnits</code> parameter.</p>
113 pub fn account_access_type(mut self, input: crate::types::AccountAccessType) -> Self {
114 self.inner = self.inner.account_access_type(input);
115 self
116 }
117 /// <p>Specifies whether the workspace can access Amazon Web Services resources in this Amazon Web Services account only, or whether it can also access Amazon Web Services resources in other accounts in the same organization. If you specify <code>ORGANIZATION</code>, you must specify which organizational units the workspace can access in the <code>workspaceOrganizationalUnits</code> parameter.</p>
118 pub fn set_account_access_type(mut self, input: ::std::option::Option<crate::types::AccountAccessType>) -> Self {
119 self.inner = self.inner.set_account_access_type(input);
120 self
121 }
122 /// <p>Specifies whether the workspace can access Amazon Web Services resources in this Amazon Web Services account only, or whether it can also access Amazon Web Services resources in other accounts in the same organization. If you specify <code>ORGANIZATION</code>, you must specify which organizational units the workspace can access in the <code>workspaceOrganizationalUnits</code> parameter.</p>
123 pub fn get_account_access_type(&self) -> &::std::option::Option<crate::types::AccountAccessType> {
124 self.inner.get_account_access_type()
125 }
126 /// <p>A unique, case-sensitive, user-provided identifier to ensure the idempotency of the request.</p>
127 pub fn client_token(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
128 self.inner = self.inner.client_token(input.into());
129 self
130 }
131 /// <p>A unique, case-sensitive, user-provided identifier to ensure the idempotency of the request.</p>
132 pub fn set_client_token(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
133 self.inner = self.inner.set_client_token(input);
134 self
135 }
136 /// <p>A unique, case-sensitive, user-provided identifier to ensure the idempotency of the request.</p>
137 pub fn get_client_token(&self) -> &::std::option::Option<::std::string::String> {
138 self.inner.get_client_token()
139 }
140 /// <p>The name of an IAM role that already exists to use with Organizations to access Amazon Web Services data sources and notification channels in other accounts in an organization.</p>
141 pub fn organization_role_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
142 self.inner = self.inner.organization_role_name(input.into());
143 self
144 }
145 /// <p>The name of an IAM role that already exists to use with Organizations to access Amazon Web Services data sources and notification channels in other accounts in an organization.</p>
146 pub fn set_organization_role_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
147 self.inner = self.inner.set_organization_role_name(input);
148 self
149 }
150 /// <p>The name of an IAM role that already exists to use with Organizations to access Amazon Web Services data sources and notification channels in other accounts in an organization.</p>
151 pub fn get_organization_role_name(&self) -> &::std::option::Option<::std::string::String> {
152 self.inner.get_organization_role_name()
153 }
154 /// <p>When creating a workspace through the Amazon Web Services API, CLI or Amazon Web Services CloudFormation, you must manage IAM roles and provision the permissions that the workspace needs to use Amazon Web Services data sources and notification channels.</p>
155 /// <p>You must also specify a <code>workspaceRoleArn</code> for a role that you will manage for the workspace to use when accessing those datasources and notification channels.</p>
156 /// <p>The ability for Amazon Managed Grafana to create and update IAM roles on behalf of the user is supported only in the Amazon Managed Grafana console, where this value may be set to <code>SERVICE_MANAGED</code>.</p><note>
157 /// <p>Use only the <code>CUSTOMER_MANAGED</code> permission type when creating a workspace with the API, CLI or Amazon Web Services CloudFormation.</p>
158 /// </note>
159 /// <p>For more information, see <a href="https://docs.aws.amazon.com/grafana/latest/userguide/AMG-manage-permissions.html">Amazon Managed Grafana permissions and policies for Amazon Web Services data sources and notification channels</a>.</p>
160 pub fn permission_type(mut self, input: crate::types::PermissionType) -> Self {
161 self.inner = self.inner.permission_type(input);
162 self
163 }
164 /// <p>When creating a workspace through the Amazon Web Services API, CLI or Amazon Web Services CloudFormation, you must manage IAM roles and provision the permissions that the workspace needs to use Amazon Web Services data sources and notification channels.</p>
165 /// <p>You must also specify a <code>workspaceRoleArn</code> for a role that you will manage for the workspace to use when accessing those datasources and notification channels.</p>
166 /// <p>The ability for Amazon Managed Grafana to create and update IAM roles on behalf of the user is supported only in the Amazon Managed Grafana console, where this value may be set to <code>SERVICE_MANAGED</code>.</p><note>
167 /// <p>Use only the <code>CUSTOMER_MANAGED</code> permission type when creating a workspace with the API, CLI or Amazon Web Services CloudFormation.</p>
168 /// </note>
169 /// <p>For more information, see <a href="https://docs.aws.amazon.com/grafana/latest/userguide/AMG-manage-permissions.html">Amazon Managed Grafana permissions and policies for Amazon Web Services data sources and notification channels</a>.</p>
170 pub fn set_permission_type(mut self, input: ::std::option::Option<crate::types::PermissionType>) -> Self {
171 self.inner = self.inner.set_permission_type(input);
172 self
173 }
174 /// <p>When creating a workspace through the Amazon Web Services API, CLI or Amazon Web Services CloudFormation, you must manage IAM roles and provision the permissions that the workspace needs to use Amazon Web Services data sources and notification channels.</p>
175 /// <p>You must also specify a <code>workspaceRoleArn</code> for a role that you will manage for the workspace to use when accessing those datasources and notification channels.</p>
176 /// <p>The ability for Amazon Managed Grafana to create and update IAM roles on behalf of the user is supported only in the Amazon Managed Grafana console, where this value may be set to <code>SERVICE_MANAGED</code>.</p><note>
177 /// <p>Use only the <code>CUSTOMER_MANAGED</code> permission type when creating a workspace with the API, CLI or Amazon Web Services CloudFormation.</p>
178 /// </note>
179 /// <p>For more information, see <a href="https://docs.aws.amazon.com/grafana/latest/userguide/AMG-manage-permissions.html">Amazon Managed Grafana permissions and policies for Amazon Web Services data sources and notification channels</a>.</p>
180 pub fn get_permission_type(&self) -> &::std::option::Option<crate::types::PermissionType> {
181 self.inner.get_permission_type()
182 }
183 /// <p>The name of the CloudFormation stack set to use to generate IAM roles to be used for this workspace.</p>
184 pub fn stack_set_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
185 self.inner = self.inner.stack_set_name(input.into());
186 self
187 }
188 /// <p>The name of the CloudFormation stack set to use to generate IAM roles to be used for this workspace.</p>
189 pub fn set_stack_set_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
190 self.inner = self.inner.set_stack_set_name(input);
191 self
192 }
193 /// <p>The name of the CloudFormation stack set to use to generate IAM roles to be used for this workspace.</p>
194 pub fn get_stack_set_name(&self) -> &::std::option::Option<::std::string::String> {
195 self.inner.get_stack_set_name()
196 }
197 ///
198 /// Appends an item to `workspaceDataSources`.
199 ///
200 /// To override the contents of this collection use [`set_workspace_data_sources`](Self::set_workspace_data_sources).
201 ///
202 /// <p>This parameter is for internal use only, and should not be used.</p>
203 pub fn workspace_data_sources(mut self, input: crate::types::DataSourceType) -> Self {
204 self.inner = self.inner.workspace_data_sources(input);
205 self
206 }
207 /// <p>This parameter is for internal use only, and should not be used.</p>
208 pub fn set_workspace_data_sources(mut self, input: ::std::option::Option<::std::vec::Vec<crate::types::DataSourceType>>) -> Self {
209 self.inner = self.inner.set_workspace_data_sources(input);
210 self
211 }
212 /// <p>This parameter is for internal use only, and should not be used.</p>
213 pub fn get_workspace_data_sources(&self) -> &::std::option::Option<::std::vec::Vec<crate::types::DataSourceType>> {
214 self.inner.get_workspace_data_sources()
215 }
216 /// <p>A description for the workspace. This is used only to help you identify this workspace.</p>
217 /// <p>Pattern: <code>^\[\\p{L}\\p{Z}\\p{N}\\p{P}\]{0,2048}$</code></p>
218 pub fn workspace_description(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
219 self.inner = self.inner.workspace_description(input.into());
220 self
221 }
222 /// <p>A description for the workspace. This is used only to help you identify this workspace.</p>
223 /// <p>Pattern: <code>^\[\\p{L}\\p{Z}\\p{N}\\p{P}\]{0,2048}$</code></p>
224 pub fn set_workspace_description(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
225 self.inner = self.inner.set_workspace_description(input);
226 self
227 }
228 /// <p>A description for the workspace. This is used only to help you identify this workspace.</p>
229 /// <p>Pattern: <code>^\[\\p{L}\\p{Z}\\p{N}\\p{P}\]{0,2048}$</code></p>
230 pub fn get_workspace_description(&self) -> &::std::option::Option<::std::string::String> {
231 self.inner.get_workspace_description()
232 }
233 /// <p>The name for the workspace. It does not have to be unique.</p>
234 pub fn workspace_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
235 self.inner = self.inner.workspace_name(input.into());
236 self
237 }
238 /// <p>The name for the workspace. It does not have to be unique.</p>
239 pub fn set_workspace_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
240 self.inner = self.inner.set_workspace_name(input);
241 self
242 }
243 /// <p>The name for the workspace. It does not have to be unique.</p>
244 pub fn get_workspace_name(&self) -> &::std::option::Option<::std::string::String> {
245 self.inner.get_workspace_name()
246 }
247 ///
248 /// Appends an item to `workspaceNotificationDestinations`.
249 ///
250 /// To override the contents of this collection use [`set_workspace_notification_destinations`](Self::set_workspace_notification_destinations).
251 ///
252 /// <p>Specify the Amazon Web Services notification channels that you plan to use in this workspace. Specifying these data sources here enables Amazon Managed Grafana to create IAM roles and permissions that allow Amazon Managed Grafana to use these channels.</p>
253 pub fn workspace_notification_destinations(mut self, input: crate::types::NotificationDestinationType) -> Self {
254 self.inner = self.inner.workspace_notification_destinations(input);
255 self
256 }
257 /// <p>Specify the Amazon Web Services notification channels that you plan to use in this workspace. Specifying these data sources here enables Amazon Managed Grafana to create IAM roles and permissions that allow Amazon Managed Grafana to use these channels.</p>
258 pub fn set_workspace_notification_destinations(
259 mut self,
260 input: ::std::option::Option<::std::vec::Vec<crate::types::NotificationDestinationType>>,
261 ) -> Self {
262 self.inner = self.inner.set_workspace_notification_destinations(input);
263 self
264 }
265 /// <p>Specify the Amazon Web Services notification channels that you plan to use in this workspace. Specifying these data sources here enables Amazon Managed Grafana to create IAM roles and permissions that allow Amazon Managed Grafana to use these channels.</p>
266 pub fn get_workspace_notification_destinations(&self) -> &::std::option::Option<::std::vec::Vec<crate::types::NotificationDestinationType>> {
267 self.inner.get_workspace_notification_destinations()
268 }
269 ///
270 /// Appends an item to `workspaceOrganizationalUnits`.
271 ///
272 /// To override the contents of this collection use [`set_workspace_organizational_units`](Self::set_workspace_organizational_units).
273 ///
274 /// <p>Specifies the organizational units that this workspace is allowed to use data sources from, if this workspace is in an account that is part of an organization.</p>
275 pub fn workspace_organizational_units(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
276 self.inner = self.inner.workspace_organizational_units(input.into());
277 self
278 }
279 /// <p>Specifies the organizational units that this workspace is allowed to use data sources from, if this workspace is in an account that is part of an organization.</p>
280 pub fn set_workspace_organizational_units(mut self, input: ::std::option::Option<::std::vec::Vec<::std::string::String>>) -> Self {
281 self.inner = self.inner.set_workspace_organizational_units(input);
282 self
283 }
284 /// <p>Specifies the organizational units that this workspace is allowed to use data sources from, if this workspace is in an account that is part of an organization.</p>
285 pub fn get_workspace_organizational_units(&self) -> &::std::option::Option<::std::vec::Vec<::std::string::String>> {
286 self.inner.get_workspace_organizational_units()
287 }
288 /// <p>Specified the IAM role that grants permissions to the Amazon Web Services resources that the workspace will view data from, including both data sources and notification channels. You are responsible for managing the permissions for this role as new data sources or notification channels are added.</p>
289 pub fn workspace_role_arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
290 self.inner = self.inner.workspace_role_arn(input.into());
291 self
292 }
293 /// <p>Specified the IAM role that grants permissions to the Amazon Web Services resources that the workspace will view data from, including both data sources and notification channels. You are responsible for managing the permissions for this role as new data sources or notification channels are added.</p>
294 pub fn set_workspace_role_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
295 self.inner = self.inner.set_workspace_role_arn(input);
296 self
297 }
298 /// <p>Specified the IAM role that grants permissions to the Amazon Web Services resources that the workspace will view data from, including both data sources and notification channels. You are responsible for managing the permissions for this role as new data sources or notification channels are added.</p>
299 pub fn get_workspace_role_arn(&self) -> &::std::option::Option<::std::string::String> {
300 self.inner.get_workspace_role_arn()
301 }
302 ///
303 /// Appends an item to `authenticationProviders`.
304 ///
305 /// To override the contents of this collection use [`set_authentication_providers`](Self::set_authentication_providers).
306 ///
307 /// <p>Specifies whether this workspace uses SAML 2.0, IAM Identity Center, or both to authenticate users for using the Grafana console within a workspace. For more information, see <a href="https://docs.aws.amazon.com/grafana/latest/userguide/authentication-in-AMG.html">User authentication in Amazon Managed Grafana</a>.</p>
308 pub fn authentication_providers(mut self, input: crate::types::AuthenticationProviderTypes) -> Self {
309 self.inner = self.inner.authentication_providers(input);
310 self
311 }
312 /// <p>Specifies whether this workspace uses SAML 2.0, IAM Identity Center, or both to authenticate users for using the Grafana console within a workspace. For more information, see <a href="https://docs.aws.amazon.com/grafana/latest/userguide/authentication-in-AMG.html">User authentication in Amazon Managed Grafana</a>.</p>
313 pub fn set_authentication_providers(mut self, input: ::std::option::Option<::std::vec::Vec<crate::types::AuthenticationProviderTypes>>) -> Self {
314 self.inner = self.inner.set_authentication_providers(input);
315 self
316 }
317 /// <p>Specifies whether this workspace uses SAML 2.0, IAM Identity Center, or both to authenticate users for using the Grafana console within a workspace. For more information, see <a href="https://docs.aws.amazon.com/grafana/latest/userguide/authentication-in-AMG.html">User authentication in Amazon Managed Grafana</a>.</p>
318 pub fn get_authentication_providers(&self) -> &::std::option::Option<::std::vec::Vec<crate::types::AuthenticationProviderTypes>> {
319 self.inner.get_authentication_providers()
320 }
321 ///
322 /// Adds a key-value pair to `tags`.
323 ///
324 /// To override the contents of this collection use [`set_tags`](Self::set_tags).
325 ///
326 /// <p>The list of tags associated with the workspace.</p>
327 pub fn tags(mut self, k: impl ::std::convert::Into<::std::string::String>, v: impl ::std::convert::Into<::std::string::String>) -> Self {
328 self.inner = self.inner.tags(k.into(), v.into());
329 self
330 }
331 /// <p>The list of tags associated with the workspace.</p>
332 pub fn set_tags(mut self, input: ::std::option::Option<::std::collections::HashMap<::std::string::String, ::std::string::String>>) -> Self {
333 self.inner = self.inner.set_tags(input);
334 self
335 }
336 /// <p>The list of tags associated with the workspace.</p>
337 pub fn get_tags(&self) -> &::std::option::Option<::std::collections::HashMap<::std::string::String, ::std::string::String>> {
338 self.inner.get_tags()
339 }
340 /// <p>The configuration settings for an Amazon VPC that contains data sources for your Grafana workspace to connect to.</p><note>
341 /// <p>Connecting to a private VPC is not yet available in the Asia Pacific (Seoul) Region (ap-northeast-2).</p>
342 /// </note>
343 pub fn vpc_configuration(mut self, input: crate::types::VpcConfiguration) -> Self {
344 self.inner = self.inner.vpc_configuration(input);
345 self
346 }
347 /// <p>The configuration settings for an Amazon VPC that contains data sources for your Grafana workspace to connect to.</p><note>
348 /// <p>Connecting to a private VPC is not yet available in the Asia Pacific (Seoul) Region (ap-northeast-2).</p>
349 /// </note>
350 pub fn set_vpc_configuration(mut self, input: ::std::option::Option<crate::types::VpcConfiguration>) -> Self {
351 self.inner = self.inner.set_vpc_configuration(input);
352 self
353 }
354 /// <p>The configuration settings for an Amazon VPC that contains data sources for your Grafana workspace to connect to.</p><note>
355 /// <p>Connecting to a private VPC is not yet available in the Asia Pacific (Seoul) Region (ap-northeast-2).</p>
356 /// </note>
357 pub fn get_vpc_configuration(&self) -> &::std::option::Option<crate::types::VpcConfiguration> {
358 self.inner.get_vpc_configuration()
359 }
360 /// <p>The configuration string for the workspace that you create. For more information about the format and configuration options available, see <a href="https://docs.aws.amazon.com/grafana/latest/userguide/AMG-configure-workspace.html">Working in your Grafana workspace</a>.</p>
361 pub fn configuration(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
362 self.inner = self.inner.configuration(input.into());
363 self
364 }
365 /// <p>The configuration string for the workspace that you create. For more information about the format and configuration options available, see <a href="https://docs.aws.amazon.com/grafana/latest/userguide/AMG-configure-workspace.html">Working in your Grafana workspace</a>.</p>
366 pub fn set_configuration(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
367 self.inner = self.inner.set_configuration(input);
368 self
369 }
370 /// <p>The configuration string for the workspace that you create. For more information about the format and configuration options available, see <a href="https://docs.aws.amazon.com/grafana/latest/userguide/AMG-configure-workspace.html">Working in your Grafana workspace</a>.</p>
371 pub fn get_configuration(&self) -> &::std::option::Option<::std::string::String> {
372 self.inner.get_configuration()
373 }
374 /// <p>Configuration for network access to your workspace.</p>
375 /// <p>When this is configured, only listed IP addresses and VPC endpoints will be able to access your workspace. Standard Grafana authentication and authorization will still be required.</p>
376 /// <p>If this is not configured, or is removed, then all IP addresses and VPC endpoints will be allowed. Standard Grafana authentication and authorization will still be required.</p>
377 pub fn network_access_control(mut self, input: crate::types::NetworkAccessConfiguration) -> Self {
378 self.inner = self.inner.network_access_control(input);
379 self
380 }
381 /// <p>Configuration for network access to your workspace.</p>
382 /// <p>When this is configured, only listed IP addresses and VPC endpoints will be able to access your workspace. Standard Grafana authentication and authorization will still be required.</p>
383 /// <p>If this is not configured, or is removed, then all IP addresses and VPC endpoints will be allowed. Standard Grafana authentication and authorization will still be required.</p>
384 pub fn set_network_access_control(mut self, input: ::std::option::Option<crate::types::NetworkAccessConfiguration>) -> Self {
385 self.inner = self.inner.set_network_access_control(input);
386 self
387 }
388 /// <p>Configuration for network access to your workspace.</p>
389 /// <p>When this is configured, only listed IP addresses and VPC endpoints will be able to access your workspace. Standard Grafana authentication and authorization will still be required.</p>
390 /// <p>If this is not configured, or is removed, then all IP addresses and VPC endpoints will be allowed. Standard Grafana authentication and authorization will still be required.</p>
391 pub fn get_network_access_control(&self) -> &::std::option::Option<crate::types::NetworkAccessConfiguration> {
392 self.inner.get_network_access_control()
393 }
394 /// <p>Specifies the version of Grafana to support in the new workspace. If not specified, defaults to the latest version (for example, 10.4).</p>
395 /// <p>To get a list of supported versions, use the <code>ListVersions</code> operation.</p>
396 pub fn grafana_version(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
397 self.inner = self.inner.grafana_version(input.into());
398 self
399 }
400 /// <p>Specifies the version of Grafana to support in the new workspace. If not specified, defaults to the latest version (for example, 10.4).</p>
401 /// <p>To get a list of supported versions, use the <code>ListVersions</code> operation.</p>
402 pub fn set_grafana_version(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
403 self.inner = self.inner.set_grafana_version(input);
404 self
405 }
406 /// <p>Specifies the version of Grafana to support in the new workspace. If not specified, defaults to the latest version (for example, 10.4).</p>
407 /// <p>To get a list of supported versions, use the <code>ListVersions</code> operation.</p>
408 pub fn get_grafana_version(&self) -> &::std::option::Option<::std::string::String> {
409 self.inner.get_grafana_version()
410 }
411}