Skip to content

Commit

Permalink
AWS SDK for Java 1.11.755
Browse files Browse the repository at this point in the history
  • Loading branch information
AWS committed Mar 30, 2020
1 parent fc5fae3 commit d1c7e90
Show file tree
Hide file tree
Showing 289 changed files with 2,690 additions and 376 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
# __1.11.755__ __2020-03-30__
## __Access Analyzer__
- ### Features
- This release adds support for the creation and management of IAM Access Analyzer analyzers with type organization. An analyzer with type organization continuously monitors all supported resources within the AWS organization and reports findings when they allow access from outside the organization.

# __1.11.754__ __2020-03-27__
## __AWS Global Accelerator__
- ### Features
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ dependencies.
<dependency>
<groupId>com.amazonaws</groupId>
<artifactId>aws-java-sdk-bom</artifactId>
<version>1.11.754</version>
<version>1.11.755</version>
<type>pom</type>
<scope>import</scope>
</dependency>
Expand Down
2 changes: 1 addition & 1 deletion aws-java-sdk-accessanalyzer/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<groupId>com.amazonaws</groupId>
<artifactId>aws-java-sdk-pom</artifactId>
<version>1.11.755-SNAPSHOT</version>
<version>1.11.755</version>
</parent>
<groupId>com.amazonaws</groupId>
<artifactId>aws-java-sdk-accessanalyzer</artifactId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,12 @@ public class AnalyzedResource implements Serializable, Cloneable, StructuredPojo
* </p>
*/
private String resourceArn;
/**
* <p>
* The AWS account ID that owns the resource.
* </p>
*/
private String resourceOwnerAccount;
/**
* <p>
* The type of the resource that was analyzed.
Expand Down Expand Up @@ -375,6 +381,46 @@ public AnalyzedResource withResourceArn(String resourceArn) {
return this;
}

/**
* <p>
* The AWS account ID that owns the resource.
* </p>
*
* @param resourceOwnerAccount
* The AWS account ID that owns the resource.
*/

public void setResourceOwnerAccount(String resourceOwnerAccount) {
this.resourceOwnerAccount = resourceOwnerAccount;
}

/**
* <p>
* The AWS account ID that owns the resource.
* </p>
*
* @return The AWS account ID that owns the resource.
*/

public String getResourceOwnerAccount() {
return this.resourceOwnerAccount;
}

/**
* <p>
* The AWS account ID that owns the resource.
* </p>
*
* @param resourceOwnerAccount
* The AWS account ID that owns the resource.
* @return Returns a reference to this object so that method calls can be chained together.
*/

public AnalyzedResource withResourceOwnerAccount(String resourceOwnerAccount) {
setResourceOwnerAccount(resourceOwnerAccount);
return this;
}

/**
* <p>
* The type of the resource that was analyzed.
Expand Down Expand Up @@ -627,6 +673,8 @@ public String toString() {
sb.append("IsPublic: ").append(getIsPublic()).append(",");
if (getResourceArn() != null)
sb.append("ResourceArn: ").append(getResourceArn()).append(",");
if (getResourceOwnerAccount() != null)
sb.append("ResourceOwnerAccount: ").append(getResourceOwnerAccount()).append(",");
if (getResourceType() != null)
sb.append("ResourceType: ").append(getResourceType()).append(",");
if (getSharedVia() != null)
Expand Down Expand Up @@ -673,6 +721,10 @@ public boolean equals(Object obj) {
return false;
if (other.getResourceArn() != null && other.getResourceArn().equals(this.getResourceArn()) == false)
return false;
if (other.getResourceOwnerAccount() == null ^ this.getResourceOwnerAccount() == null)
return false;
if (other.getResourceOwnerAccount() != null && other.getResourceOwnerAccount().equals(this.getResourceOwnerAccount()) == false)
return false;
if (other.getResourceType() == null ^ this.getResourceType() == null)
return false;
if (other.getResourceType() != null && other.getResourceType().equals(this.getResourceType()) == false)
Expand Down Expand Up @@ -703,6 +755,7 @@ public int hashCode() {
hashCode = prime * hashCode + ((getError() == null) ? 0 : getError().hashCode());
hashCode = prime * hashCode + ((getIsPublic() == null) ? 0 : getIsPublic().hashCode());
hashCode = prime * hashCode + ((getResourceArn() == null) ? 0 : getResourceArn().hashCode());
hashCode = prime * hashCode + ((getResourceOwnerAccount() == null) ? 0 : getResourceOwnerAccount().hashCode());
hashCode = prime * hashCode + ((getResourceType() == null) ? 0 : getResourceType().hashCode());
hashCode = prime * hashCode + ((getSharedVia() == null) ? 0 : getSharedVia().hashCode());
hashCode = prime * hashCode + ((getStatus() == null) ? 0 : getStatus().hashCode());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,12 @@ public class AnalyzedResourceSummary implements Serializable, Cloneable, Structu
* </p>
*/
private String resourceArn;
/**
* <p>
* The AWS account ID that owns the resource.
* </p>
*/
private String resourceOwnerAccount;
/**
* <p>
* The type of resource that was analyzed.
Expand Down Expand Up @@ -81,6 +87,46 @@ public AnalyzedResourceSummary withResourceArn(String resourceArn) {
return this;
}

/**
* <p>
* The AWS account ID that owns the resource.
* </p>
*
* @param resourceOwnerAccount
* The AWS account ID that owns the resource.
*/

public void setResourceOwnerAccount(String resourceOwnerAccount) {
this.resourceOwnerAccount = resourceOwnerAccount;
}

/**
* <p>
* The AWS account ID that owns the resource.
* </p>
*
* @return The AWS account ID that owns the resource.
*/

public String getResourceOwnerAccount() {
return this.resourceOwnerAccount;
}

/**
* <p>
* The AWS account ID that owns the resource.
* </p>
*
* @param resourceOwnerAccount
* The AWS account ID that owns the resource.
* @return Returns a reference to this object so that method calls can be chained together.
*/

public AnalyzedResourceSummary withResourceOwnerAccount(String resourceOwnerAccount) {
setResourceOwnerAccount(resourceOwnerAccount);
return this;
}

/**
* <p>
* The type of resource that was analyzed.
Expand Down Expand Up @@ -154,6 +200,8 @@ public String toString() {
sb.append("{");
if (getResourceArn() != null)
sb.append("ResourceArn: ").append(getResourceArn()).append(",");
if (getResourceOwnerAccount() != null)
sb.append("ResourceOwnerAccount: ").append(getResourceOwnerAccount()).append(",");
if (getResourceType() != null)
sb.append("ResourceType: ").append(getResourceType());
sb.append("}");
Expand All @@ -174,6 +222,10 @@ public boolean equals(Object obj) {
return false;
if (other.getResourceArn() != null && other.getResourceArn().equals(this.getResourceArn()) == false)
return false;
if (other.getResourceOwnerAccount() == null ^ this.getResourceOwnerAccount() == null)
return false;
if (other.getResourceOwnerAccount() != null && other.getResourceOwnerAccount().equals(this.getResourceOwnerAccount()) == false)
return false;
if (other.getResourceType() == null ^ this.getResourceType() == null)
return false;
if (other.getResourceType() != null && other.getResourceType().equals(this.getResourceType()) == false)
Expand All @@ -187,6 +239,7 @@ public int hashCode() {
int hashCode = 1;

hashCode = prime * hashCode + ((getResourceArn() == null) ? 0 : getResourceArn().hashCode());
hashCode = prime * hashCode + ((getResourceOwnerAccount() == null) ? 0 : getResourceOwnerAccount().hashCode());
hashCode = prime * hashCode + ((getResourceType() == null) ? 0 : getResourceType().hashCode());
return hashCode;
}
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
/*
* Copyright 2015-2020 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
* the License. A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
* CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
* and limitations under the License.
*/
package com.amazonaws.services.accessanalyzer.model;

import javax.annotation.Generated;

/**
*
*/
@Generated("com.amazonaws:aws-java-sdk-code-generator")
public enum AnalyzerStatus {

ACTIVE("ACTIVE"),
CREATING("CREATING"),
DISABLED("DISABLED"),
FAILED("FAILED");

private String value;

private AnalyzerStatus(String value) {
this.value = value;
}

@Override
public String toString() {
return this.value;
}

/**
* Use this in place of valueOf.
*
* @param value
* real value
* @return AnalyzerStatus corresponding to the value
*
* @throws IllegalArgumentException
* If the specified value does not map to one of the known values in this enum.
*/
public static AnalyzerStatus fromValue(String value) {
if (value == null || "".equals(value)) {
throw new IllegalArgumentException("Value cannot be null or empty!");
}

for (AnalyzerStatus enumEntry : AnalyzerStatus.values()) {
if (enumEntry.toString().equals(value)) {
return enumEntry;
}
}

throw new IllegalArgumentException("Cannot create enum from " + value + " value!");
}
}
Loading

0 comments on commit d1c7e90

Please sign in to comment.