Skip to content

Commit 471bdcb

Browse files
Add managementType field to ListCoverage API response.
1 parent 0c24a63 commit 471bdcb

25 files changed

+468
-199
lines changed

generator/ServiceModels/guardduty/guardduty-2017-11-28.api.json

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1571,6 +1571,10 @@
15711571
"AddonDetails":{
15721572
"shape":"AddonDetails",
15731573
"locationName":"addonDetails"
1574+
},
1575+
"ManagementType":{
1576+
"shape":"ManagementType",
1577+
"locationName":"managementType"
15741578
}
15751579
}
15761580
},
@@ -1616,7 +1620,8 @@
16161620
"CLUSTER_NAME",
16171621
"RESOURCE_TYPE",
16181622
"COVERAGE_STATUS",
1619-
"ADDON_VERSION"
1623+
"ADDON_VERSION",
1624+
"MANAGEMENT_TYPE"
16201625
]
16211626
},
16221627
"CoverageFilterCriterionList":{
@@ -4738,6 +4743,13 @@
47384743
}
47394744
}
47404745
},
4746+
"ManagementType":{
4747+
"type":"string",
4748+
"enum":[
4749+
"AUTO_MANAGED",
4750+
"MANUAL"
4751+
]
4752+
},
47414753
"MapEquals":{
47424754
"type":"list",
47434755
"member":{"shape":"ScanConditionPair"}

generator/ServiceModels/guardduty/guardduty-2017-11-28.docs.json

Lines changed: 22 additions & 16 deletions
Large diffs are not rendered by default.

generator/ServiceModels/guardduty/guardduty-2017-11-28.normal.json

Lines changed: 30 additions & 17 deletions
Large diffs are not rendered by default.

sdk/src/Services/GuardDuty/Generated/Model/CoverageEksClusterDetails.cs

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ public partial class CoverageEksClusterDetails
3737
private string _clusterName;
3838
private long? _compatibleNodes;
3939
private long? _coveredNodes;
40+
private ManagementType _managementType;
4041

4142
/// <summary>
4243
/// Gets and sets the property AddonDetails.
@@ -111,5 +112,33 @@ internal bool IsSetCoveredNodes()
111112
return this._coveredNodes.HasValue;
112113
}
113114

115+
/// <summary>
116+
/// Gets and sets the property ManagementType.
117+
/// <para>
118+
/// Indicates how the Amazon EKS add-on GuardDuty agent is managed for this EKS cluster.
119+
/// </para>
120+
///
121+
/// <para>
122+
/// <code>AUTO_MANAGED</code> indicates GuardDuty deploys and manages updates for this
123+
/// resource.
124+
/// </para>
125+
///
126+
/// <para>
127+
/// <code>MANUAL</code> indicates that you are responsible to deploy, update, and manage
128+
/// the Amazon EKS add-on GuardDuty agent for this resource.
129+
/// </para>
130+
/// </summary>
131+
public ManagementType ManagementType
132+
{
133+
get { return this._managementType; }
134+
set { this._managementType = value; }
135+
}
136+
137+
// Check to see if ManagementType property is set
138+
internal bool IsSetManagementType()
139+
{
140+
return this._managementType != null;
141+
}
142+
114143
}
115144
}

sdk/src/Services/GuardDuty/Generated/Model/DescribeOrganizationConfigurationResponse.cs

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -77,16 +77,15 @@ internal bool IsSetAutoEnable()
7777
/// </para>
7878
/// </li> <li>
7979
/// <para>
80-
/// <code>ALL</code>: Indicates that all accounts in the Amazon Web Services Organization
81-
/// have GuardDuty enabled automatically. This includes <code>NEW</code> accounts that
82-
/// join the organization and accounts that may have been suspended or removed from the
83-
/// organization in GuardDuty.
80+
/// <code>ALL</code>: Indicates that all accounts in the organization have GuardDuty
81+
/// enabled automatically. This includes <code>NEW</code> accounts that join the organization
82+
/// and accounts that may have been suspended or removed from the organization in GuardDuty.
8483
/// </para>
8584
/// </li> <li>
8685
/// <para>
8786
/// <code>NONE</code>: Indicates that GuardDuty will not be automatically enabled for
88-
/// any accounts in the organization. GuardDuty must be managed for each account individually
89-
/// by the administrator.
87+
/// any account in the organization. The administrator must manage GuardDuty for each
88+
/// account in the organization individually.
9089
/// </para>
9190
/// </li> </ul>
9291
/// </summary>

sdk/src/Services/GuardDuty/Generated/Model/DisableOrganizationAdminAccountRequest.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@ namespace Amazon.GuardDuty.Model
3030
{
3131
/// <summary>
3232
/// Container for the parameters to the DisableOrganizationAdminAccount operation.
33-
/// Disables an Amazon Web Services account within the Organization as the GuardDuty delegated
34-
/// administrator.
33+
/// Removes the existing GuardDuty delegated administrator of the organization. Only the
34+
/// organization's management account can run this API operation.
3535
/// </summary>
3636
public partial class DisableOrganizationAdminAccountRequest : AmazonGuardDutyRequest
3737
{

sdk/src/Services/GuardDuty/Generated/Model/DisassociateMembersRequest.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ namespace Amazon.GuardDuty.Model
4747
/// <para>
4848
/// With <code>autoEnableOrganizationMembers</code> configuration for your organization
4949
/// set to <code>ALL</code>, you'll receive an error if you attempt to disassociate a
50-
/// member account before removing them from your Amazon Web Services organization.
50+
/// member account before removing them from your organization.
5151
/// </para>
5252
/// </summary>
5353
public partial class DisassociateMembersRequest : AmazonGuardDutyRequest

sdk/src/Services/GuardDuty/Generated/Model/EnableOrganizationAdminAccountRequest.cs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,9 @@ namespace Amazon.GuardDuty.Model
3030
{
3131
/// <summary>
3232
/// Container for the parameters to the EnableOrganizationAdminAccount operation.
33-
/// Enables an Amazon Web Services account within the organization as the GuardDuty delegated
34-
/// administrator.
33+
/// Designates an Amazon Web Services account within the organization as your GuardDuty
34+
/// delegated administrator. Only the organization's management account can run this API
35+
/// operation.
3536
/// </summary>
3637
public partial class EnableOrganizationAdminAccountRequest : AmazonGuardDutyRequest
3738
{

sdk/src/Services/GuardDuty/Generated/Model/GetAdministratorAccountRequest.cs

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,15 @@ namespace Amazon.GuardDuty.Model
3030
{
3131
/// <summary>
3232
/// Container for the parameters to the GetAdministratorAccount operation.
33-
/// Provides the details for the GuardDuty administrator account associated with the current
33+
/// Provides the details of the GuardDuty administrator account associated with the current
3434
/// GuardDuty member account.
35+
///
36+
/// <note>
37+
/// <para>
38+
/// If the organization's management account or a delegated administrator runs this API,
39+
/// it will return success (<code>HTTP 200</code>) but no content.
40+
/// </para>
41+
/// </note>
3542
/// </summary>
3643
public partial class GetAdministratorAccountRequest : AmazonGuardDutyRequest
3744
{

sdk/src/Services/GuardDuty/Generated/Model/Internal/MarshallTransformations/CoverageEksClusterDetailsUnmarshaller.cs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,12 @@ public CoverageEksClusterDetails Unmarshall(JsonUnmarshallerContext context)
8888
unmarshalledObject.CoveredNodes = unmarshaller.Unmarshall(context);
8989
continue;
9090
}
91+
if (context.TestExpression("managementType", targetDepth))
92+
{
93+
var unmarshaller = StringUnmarshaller.Instance;
94+
unmarshalledObject.ManagementType = unmarshaller.Unmarshall(context);
95+
continue;
96+
}
9197
}
9298

9399
return unmarshalledObject;

0 commit comments

Comments
 (0)