1 1 | // Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
|
2 - | pub use crate::operation::create_security_group::_create_security_group_output::CreateSecurityGroupOutputBuilder;
|
3 - |
|
4 2 | pub use crate::operation::create_security_group::_create_security_group_input::CreateSecurityGroupInputBuilder;
|
5 3 |
|
4 + | pub use crate::operation::create_security_group::_create_security_group_output::CreateSecurityGroupOutputBuilder;
|
5 + |
|
6 6 | impl crate::operation::create_security_group::builders::CreateSecurityGroupInputBuilder {
|
7 7 | /// Sends a request with this input using the given client.
|
8 8 | pub async fn send_with(
|
9 9 | self,
|
10 10 | client: &crate::Client,
|
11 11 | ) -> ::std::result::Result<
|
12 12 | crate::operation::create_security_group::CreateSecurityGroupOutput,
|
13 13 | ::aws_smithy_runtime_api::client::result::SdkError<
|
14 14 | crate::operation::create_security_group::CreateSecurityGroupError,
|
15 15 | ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
|
16 16 | >,
|
17 17 | > {
|
18 18 | let mut fluent_builder = client.create_security_group();
|
19 19 | fluent_builder.inner = self;
|
20 20 | fluent_builder.send().await
|
21 21 | }
|
22 22 | }
|
23 23 | /// Fluent builder constructing a request to `CreateSecurityGroup`.
|
24 24 | ///
|
25 25 | /// <p>Creates a security group.</p>
|
26 26 | /// <p>A security group acts as a virtual firewall for your instance to control inbound and outbound traffic. For more information, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/using-network-security.html">Amazon EC2 security groups</a> in the <i>Amazon EC2 User Guide</i> and <a href="https://docs.aws.amazon.com/AmazonVPC/latest/UserGuide/VPC_SecurityGroups.html">Security groups for your VPC</a> in the <i>Amazon VPC User Guide</i>.</p>
|
27 27 | /// <p>When you create a security group, you specify a friendly name of your choice. You can't have two security groups for the same VPC with the same name.</p>
|
28 28 | /// <p>You have a default security group for use in your VPC. If you don't specify a security group when you launch an instance, the instance is launched into the appropriate default security group. A default security group includes a default rule that grants instances unrestricted network access to each other.</p>
|
29 29 | /// <p>You can add or remove rules from your security groups using <code>AuthorizeSecurityGroupIngress</code>, <code>AuthorizeSecurityGroupEgress</code>, <code>RevokeSecurityGroupIngress</code>, and <code>RevokeSecurityGroupEgress</code>.</p>
|
30 30 | /// <p>For more information about VPC security group limits, see <a href="https://docs.aws.amazon.com/vpc/latest/userguide/amazon-vpc-limits.html">Amazon VPC Limits</a>.</p>
|
31 31 | #[derive(::std::clone::Clone, ::std::fmt::Debug)]
|
32 32 | pub struct CreateSecurityGroupFluentBuilder {
|
33 33 | handle: ::std::sync::Arc<crate::client::Handle>,
|
34 34 | inner: crate::operation::create_security_group::builders::CreateSecurityGroupInputBuilder,
|
35 35 | config_override: ::std::option::Option<crate::config::Builder>,
|