7 7 | /// <p>This parameter allows (through its <a href="http://wikipedia.org/wiki/regex">regex pattern</a>) a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: _+=,.@-</p>
|
8 8 | pub group_name: ::std::option::Option<::std::string::String>,
|
9 9 | /// <p>The name identifying the policy document to delete.</p>
|
10 10 | /// <p>This parameter allows (through its <a href="http://wikipedia.org/wiki/regex">regex pattern</a>) a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: _+=,.@-</p>
|
11 11 | pub policy_name: ::std::option::Option<::std::string::String>,
|
12 12 | }
|
13 13 | impl DeleteGroupPolicyInput {
|
14 14 | /// <p>The name (friendly name, not ARN) identifying the group that the policy is embedded in.</p>
|
15 15 | /// <p>This parameter allows (through its <a href="http://wikipedia.org/wiki/regex">regex pattern</a>) a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: _+=,.@-</p>
|
16 16 | pub fn group_name(&self) -> ::std::option::Option<&str> {
|
17 17 | self.group_name.as_deref()
|
18 18 | }
|
19 19 | /// <p>The name identifying the policy document to delete.</p>
|
20 20 | /// <p>This parameter allows (through its <a href="http://wikipedia.org/wiki/regex">regex pattern</a>) a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: _+=,.@-</p>
|
21 21 | pub fn policy_name(&self) -> ::std::option::Option<&str> {
|
22 22 | self.policy_name.as_deref()
|
23 23 | }
|
24 24 | }
|
25 25 | static DELETEGROUPPOLICYINPUT_SCHEMA_ID: ::aws_smithy_schema::ShapeId = ::aws_smithy_schema::ShapeId::from_static(
|
26 26 | "com.amazonaws.iam.synthetic#DeleteGroupPolicyInput",
|
27 27 | "com.amazonaws.iam.synthetic",
|
28 28 | "DeleteGroupPolicyInput",
|
29 29 | );
|
30 30 | static DELETEGROUPPOLICYINPUT_MEMBER_GROUP_NAME: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
31 31 | ::aws_smithy_schema::ShapeId::from_static(
|
32 32 | "com.amazonaws.iam.synthetic#DeleteGroupPolicyInput$GroupName",
|
33 33 | "com.amazonaws.iam.synthetic",
|
34 34 | "DeleteGroupPolicyInput",
|
35 35 | ),
|
36 36 | ::aws_smithy_schema::ShapeType::String,
|
37 - | "group_name",
|
37 + | "GroupName",
|
38 38 | 0,
|
39 39 | );
|
40 40 | static DELETEGROUPPOLICYINPUT_MEMBER_POLICY_NAME: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
41 41 | ::aws_smithy_schema::ShapeId::from_static(
|
42 42 | "com.amazonaws.iam.synthetic#DeleteGroupPolicyInput$PolicyName",
|
43 43 | "com.amazonaws.iam.synthetic",
|
44 44 | "DeleteGroupPolicyInput",
|
45 45 | ),
|
46 46 | ::aws_smithy_schema::ShapeType::String,
|
47 - | "policy_name",
|
47 + | "PolicyName",
|
48 48 | 1,
|
49 49 | );
|
50 50 | static DELETEGROUPPOLICYINPUT_SCHEMA: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_struct(
|
51 51 | DELETEGROUPPOLICYINPUT_SCHEMA_ID,
|
52 52 | ::aws_smithy_schema::ShapeType::Structure,
|
53 53 | &[&DELETEGROUPPOLICYINPUT_MEMBER_GROUP_NAME, &DELETEGROUPPOLICYINPUT_MEMBER_POLICY_NAME],
|
54 54 | );
|
55 55 | impl DeleteGroupPolicyInput {
|
56 56 | /// The schema for this shape.
|
57 57 | pub const SCHEMA: &'static ::aws_smithy_schema::Schema = &DELETEGROUPPOLICYINPUT_SCHEMA;
|
58 58 | }
|
59 59 | impl ::aws_smithy_schema::serde::SerializableStruct for DeleteGroupPolicyInput {
|
60 60 | #[allow(unused_variables, clippy::diverging_sub_expression)]
|
61 61 | fn serialize_members(
|
62 62 | &self,
|
63 63 | ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer,
|
64 64 | ) -> ::std::result::Result<(), ::aws_smithy_schema::serde::SerdeError> {
|
65 65 | if let Some(ref val) = self.group_name {
|
66 66 | ser.write_string(&DELETEGROUPPOLICYINPUT_MEMBER_GROUP_NAME, val)?;
|
67 67 | }
|
68 68 | if let Some(ref val) = self.policy_name {
|
69 69 | ser.write_string(&DELETEGROUPPOLICYINPUT_MEMBER_POLICY_NAME, val)?;
|
70 70 | }
|
71 71 | Ok(())
|
72 72 | }
|
73 73 | }
|
74 74 | impl DeleteGroupPolicyInput {
|
75 75 | /// Deserializes this structure from a [`ShapeDeserializer`].
|
76 - | pub fn deserialize<D: ::aws_smithy_schema::serde::ShapeDeserializer>(
|
77 - | deserializer: &mut D,
|
76 + | pub fn deserialize(
|
77 + | deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
|
78 78 | ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
|
79 79 | #[allow(unused_variables, unused_mut)]
|
80 80 | let mut builder = Self::builder();
|
81 81 | #[allow(
|
82 82 | unused_variables,
|
83 83 | unreachable_code,
|
84 84 | clippy::single_match,
|
85 85 | clippy::match_single_binding,
|
86 86 | clippy::diverging_sub_expression
|
87 87 | )]
|
88 - | deserializer.read_struct(&DELETEGROUPPOLICYINPUT_SCHEMA, (), |_, member, deser| {
|
88 + | deserializer.read_struct(&DELETEGROUPPOLICYINPUT_SCHEMA, &mut |member, deser| {
|
89 89 | match member.member_index() {
|
90 90 | Some(0) => {
|
91 91 | builder.group_name = Some(deser.read_string(member)?);
|
92 92 | }
|
93 93 | Some(1) => {
|
94 94 | builder.policy_name = Some(deser.read_string(member)?);
|
95 95 | }
|
96 96 | _ => {}
|
97 97 | }
|
98 98 | Ok(())
|
99 99 | })?;
|
100 + | builder.group_name = builder.group_name.or(Some(String::new()));
|
101 + | builder.policy_name = builder.policy_name.or(Some(String::new()));
|
100 102 | builder
|
101 103 | .build()
|
102 104 | .map_err(|e| aws_smithy_schema::serde::SerdeError::Custom { message: e.to_string() })
|
103 105 | }
|
104 106 | }
|
107 + | impl DeleteGroupPolicyInput {
|
108 + | /// Deserializes this structure from a body deserializer and HTTP response.
|
109 + | pub fn deserialize_with_response(
|
110 + | deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
|
111 + | _headers: &::aws_smithy_runtime_api::http::Headers,
|
112 + | _status: u16,
|
113 + | _body: &[u8],
|
114 + | ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
|
115 + | Self::deserialize(deserializer)
|
116 + | }
|
117 + | }
|
105 118 | impl DeleteGroupPolicyInput {
|
106 119 | /// Creates a new builder-style object to manufacture [`DeleteGroupPolicyInput`](crate::operation::delete_group_policy::DeleteGroupPolicyInput).
|
107 120 | pub fn builder() -> crate::operation::delete_group_policy::builders::DeleteGroupPolicyInputBuilder {
|
108 121 | crate::operation::delete_group_policy::builders::DeleteGroupPolicyInputBuilder::default()
|
109 122 | }
|
110 123 | }
|
111 124 |
|
112 125 | /// A builder for [`DeleteGroupPolicyInput`](crate::operation::delete_group_policy::DeleteGroupPolicyInput).
|
113 126 | #[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
|
114 127 | #[non_exhaustive]
|
115 128 | pub struct DeleteGroupPolicyInputBuilder {
|
116 129 | pub(crate) group_name: ::std::option::Option<::std::string::String>,
|
117 130 | pub(crate) policy_name: ::std::option::Option<::std::string::String>,
|
118 131 | }
|
119 132 | impl DeleteGroupPolicyInputBuilder {
|
120 133 | /// <p>The name (friendly name, not ARN) identifying the group that the policy is embedded in.</p>
|
121 134 | /// <p>This parameter allows (through its <a href="http://wikipedia.org/wiki/regex">regex pattern</a>) a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: _+=,.@-</p>
|
122 135 | /// This field is required.
|
123 136 | pub fn group_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
|
124 137 | self.group_name = ::std::option::Option::Some(input.into());
|
125 138 | self
|
126 139 | }
|
127 140 | /// <p>The name (friendly name, not ARN) identifying the group that the policy is embedded in.</p>
|
128 141 | /// <p>This parameter allows (through its <a href="http://wikipedia.org/wiki/regex">regex pattern</a>) a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: _+=,.@-</p>
|
129 142 | pub fn set_group_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
|
130 143 | self.group_name = input;
|
131 144 | self
|
132 145 | }
|
133 146 | /// <p>The name (friendly name, not ARN) identifying the group that the policy is embedded in.</p>
|
134 147 | /// <p>This parameter allows (through its <a href="http://wikipedia.org/wiki/regex">regex pattern</a>) a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: _+=,.@-</p>
|