From 8f1e3bab317db20c1622faaa8ad2d6a9afa52ca6 Mon Sep 17 00:00:00 2001 From: awsmobilesdk Date: Wed, 29 Nov 2023 18:47:48 +0000 Subject: [PATCH] feat(aws-android-sdk-core): update models to latest --- .../model/AssumeRoleRequest.java | 120 ++++++++++++++++-- .../securitytoken/model/ProvidedContext.java | 53 +++++--- 2 files changed, 145 insertions(+), 28 deletions(-) diff --git a/aws-android-sdk-core/src/main/java/com/amazonaws/services/securitytoken/model/AssumeRoleRequest.java b/aws-android-sdk-core/src/main/java/com/amazonaws/services/securitytoken/model/AssumeRoleRequest.java index 082c5cb64f..2cdd5e298e 100644 --- a/aws-android-sdk-core/src/main/java/com/amazonaws/services/securitytoken/model/AssumeRoleRequest.java +++ b/aws-android-sdk-core/src/main/java/com/amazonaws/services/securitytoken/model/AssumeRoleRequest.java @@ -276,7 +276,7 @@ public class AssumeRoleRequest extends AmazonWebServiceRequest implements Serial * *

* Constraints:
- * Length: 1 - 2048
+ * Length: 1 -
* Pattern: [ -\u00FF]+
*/ private String policy; @@ -508,7 +508,17 @@ public class AssumeRoleRequest extends AmazonWebServiceRequest implements Serial /** *

- * Reserved for future use. + * A list of previously acquired trusted context assertions in the format of + * a JSON array. The trusted context assertion is signed and encrypted by + * Amazon Web Services STS. + *

+ *

+ * The following is an example of a ProvidedContext value that + * includes a single trusted context assertion and the ARN of the context + * provider from which the trusted context assertion was generated. + *

+ *

+ * [{"ProviderArn":"arn:aws:iam::aws:contextProvider/IdentityCenter","ContextAssertion":"trusted-context-assertion"}] *

*/ private java.util.List providedContexts; @@ -1115,7 +1125,7 @@ public AssumeRoleRequest withPolicyArns(java.util.Collection *

* Constraints:
- * Length: 1 - 2048
+ * Length: 1 -
* Pattern: [ -\u00FF]+
* * @return

@@ -1196,7 +1206,7 @@ public String getPolicy() { * *

* Constraints:
- * Length: 1 - 2048
+ * Length: 1 -
* Pattern: [ -\u00FF]+
* * @param policy

@@ -1280,7 +1290,7 @@ public void setPolicy(String policy) { * together. *

* Constraints:
- * Length: 1 - 2048
+ * Length: 1 -
* Pattern: [ -\u00FF]+
* * @param policy

@@ -2879,11 +2889,32 @@ public AssumeRoleRequest withSourceIdentity(String sourceIdentity) { /** *

- * Reserved for future use. + * A list of previously acquired trusted context assertions in the format of + * a JSON array. The trusted context assertion is signed and encrypted by + * Amazon Web Services STS. + *

+ *

+ * The following is an example of a ProvidedContext value that + * includes a single trusted context assertion and the ARN of the context + * provider from which the trusted context assertion was generated. + *

+ *

+ * [{"ProviderArn":"arn:aws:iam::aws:contextProvider/IdentityCenter","ContextAssertion":"trusted-context-assertion"}] *

* * @return

- * Reserved for future use. + * A list of previously acquired trusted context assertions in the + * format of a JSON array. The trusted context assertion is signed + * and encrypted by Amazon Web Services STS. + *

+ *

+ * The following is an example of a ProvidedContext + * value that includes a single trusted context assertion and the + * ARN of the context provider from which the trusted context + * assertion was generated. + *

+ *

+ * [{"ProviderArn":"arn:aws:iam::aws:contextProvider/IdentityCenter","ContextAssertion":"trusted-context-assertion"}] *

*/ public java.util.List getProvidedContexts() { @@ -2892,11 +2923,32 @@ public java.util.List getProvidedContexts() { /** *

- * Reserved for future use. + * A list of previously acquired trusted context assertions in the format of + * a JSON array. The trusted context assertion is signed and encrypted by + * Amazon Web Services STS. + *

+ *

+ * The following is an example of a ProvidedContext value that + * includes a single trusted context assertion and the ARN of the context + * provider from which the trusted context assertion was generated. + *

+ *

+ * [{"ProviderArn":"arn:aws:iam::aws:contextProvider/IdentityCenter","ContextAssertion":"trusted-context-assertion"}] *

* * @param providedContexts

- * Reserved for future use. + * A list of previously acquired trusted context assertions in + * the format of a JSON array. The trusted context assertion is + * signed and encrypted by Amazon Web Services STS. + *

+ *

+ * The following is an example of a ProvidedContext + * value that includes a single trusted context assertion and the + * ARN of the context provider from which the trusted context + * assertion was generated. + *

+ *

+ * [{"ProviderArn":"arn:aws:iam::aws:contextProvider/IdentityCenter","ContextAssertion":"trusted-context-assertion"}] *

*/ public void setProvidedContexts(java.util.Collection providedContexts) { @@ -2910,14 +2962,35 @@ public void setProvidedContexts(java.util.Collection providedCo /** *

- * Reserved for future use. + * A list of previously acquired trusted context assertions in the format of + * a JSON array. The trusted context assertion is signed and encrypted by + * Amazon Web Services STS. + *

+ *

+ * The following is an example of a ProvidedContext value that + * includes a single trusted context assertion and the ARN of the context + * provider from which the trusted context assertion was generated. + *

+ *

+ * [{"ProviderArn":"arn:aws:iam::aws:contextProvider/IdentityCenter","ContextAssertion":"trusted-context-assertion"}] *

*

* Returns a reference to this object so that method calls can be chained * together. * * @param providedContexts

- * Reserved for future use. + * A list of previously acquired trusted context assertions in + * the format of a JSON array. The trusted context assertion is + * signed and encrypted by Amazon Web Services STS. + *

+ *

+ * The following is an example of a ProvidedContext + * value that includes a single trusted context assertion and the + * ARN of the context provider from which the trusted context + * assertion was generated. + *

+ *

+ * [{"ProviderArn":"arn:aws:iam::aws:contextProvider/IdentityCenter","ContextAssertion":"trusted-context-assertion"}] *

* @return A reference to this updated object so that method calls can be * chained together. @@ -2935,14 +3008,35 @@ public AssumeRoleRequest withProvidedContexts(ProvidedContext... providedContext /** *

- * Reserved for future use. + * A list of previously acquired trusted context assertions in the format of + * a JSON array. The trusted context assertion is signed and encrypted by + * Amazon Web Services STS. + *

+ *

+ * The following is an example of a ProvidedContext value that + * includes a single trusted context assertion and the ARN of the context + * provider from which the trusted context assertion was generated. + *

+ *

+ * [{"ProviderArn":"arn:aws:iam::aws:contextProvider/IdentityCenter","ContextAssertion":"trusted-context-assertion"}] *

*

* Returns a reference to this object so that method calls can be chained * together. * * @param providedContexts

- * Reserved for future use. + * A list of previously acquired trusted context assertions in + * the format of a JSON array. The trusted context assertion is + * signed and encrypted by Amazon Web Services STS. + *

+ *

+ * The following is an example of a ProvidedContext + * value that includes a single trusted context assertion and the + * ARN of the context provider from which the trusted context + * assertion was generated. + *

+ *

+ * [{"ProviderArn":"arn:aws:iam::aws:contextProvider/IdentityCenter","ContextAssertion":"trusted-context-assertion"}] *

* @return A reference to this updated object so that method calls can be * chained together. diff --git a/aws-android-sdk-core/src/main/java/com/amazonaws/services/securitytoken/model/ProvidedContext.java b/aws-android-sdk-core/src/main/java/com/amazonaws/services/securitytoken/model/ProvidedContext.java index c91f73b670..dee8089fe8 100644 --- a/aws-android-sdk-core/src/main/java/com/amazonaws/services/securitytoken/model/ProvidedContext.java +++ b/aws-android-sdk-core/src/main/java/com/amazonaws/services/securitytoken/model/ProvidedContext.java @@ -19,13 +19,16 @@ /** *

- * Reserved for future use. + * Contains information about the provided context. This includes the signed and + * encrypted trusted context assertion and the context provider ARN from which + * the trusted context assertion was generated. *

*/ public class ProvidedContext implements Serializable { /** *

- * Reserved for future use. + * The context provider ARN from which the trusted context assertion was + * generated. *

*

* Constraints:
@@ -37,7 +40,9 @@ public class ProvidedContext implements Serializable { /** *

- * Reserved for future use. + * The signed and encrypted trusted context assertion generated by the + * context provider. The trusted context assertion is signed and encrypted + * by Amazon Web Services STS. *

*

* Constraints:
@@ -47,7 +52,8 @@ public class ProvidedContext implements Serializable { /** *

- * Reserved for future use. + * The context provider ARN from which the trusted context assertion was + * generated. *

*

* Constraints:
@@ -56,7 +62,8 @@ public class ProvidedContext implements Serializable { * -\u007E\u0085\u00A0-\uD7FF\uE000-\uFFFD\u10000-\u10FFFF]+
* * @return

- * Reserved for future use. + * The context provider ARN from which the trusted context assertion + * was generated. *

*/ public String getProviderArn() { @@ -65,7 +72,8 @@ public String getProviderArn() { /** *

- * Reserved for future use. + * The context provider ARN from which the trusted context assertion was + * generated. *

*

* Constraints:
@@ -74,7 +82,8 @@ public String getProviderArn() { * -\u007E\u0085\u00A0-\uD7FF\uE000-\uFFFD\u10000-\u10FFFF]+
* * @param providerArn

- * Reserved for future use. + * The context provider ARN from which the trusted context + * assertion was generated. *

*/ public void setProviderArn(String providerArn) { @@ -83,7 +92,8 @@ public void setProviderArn(String providerArn) { /** *

- * Reserved for future use. + * The context provider ARN from which the trusted context assertion was + * generated. *

*

* Returns a reference to this object so that method calls can be chained @@ -95,7 +105,8 @@ public void setProviderArn(String providerArn) { * -\u007E\u0085\u00A0-\uD7FF\uE000-\uFFFD\u10000-\u10FFFF]+
* * @param providerArn

- * Reserved for future use. + * The context provider ARN from which the trusted context + * assertion was generated. *

* @return A reference to this updated object so that method calls can be * chained together. @@ -107,14 +118,18 @@ public ProvidedContext withProviderArn(String providerArn) { /** *

- * Reserved for future use. + * The signed and encrypted trusted context assertion generated by the + * context provider. The trusted context assertion is signed and encrypted + * by Amazon Web Services STS. *

*

* Constraints:
* Length: 4 - 2048
* * @return

- * Reserved for future use. + * The signed and encrypted trusted context assertion generated by + * the context provider. The trusted context assertion is signed and + * encrypted by Amazon Web Services STS. *

*/ public String getContextAssertion() { @@ -123,14 +138,18 @@ public String getContextAssertion() { /** *

- * Reserved for future use. + * The signed and encrypted trusted context assertion generated by the + * context provider. The trusted context assertion is signed and encrypted + * by Amazon Web Services STS. *

*

* Constraints:
* Length: 4 - 2048
* * @param contextAssertion

- * Reserved for future use. + * The signed and encrypted trusted context assertion generated + * by the context provider. The trusted context assertion is + * signed and encrypted by Amazon Web Services STS. *

*/ public void setContextAssertion(String contextAssertion) { @@ -139,7 +158,9 @@ public void setContextAssertion(String contextAssertion) { /** *

- * Reserved for future use. + * The signed and encrypted trusted context assertion generated by the + * context provider. The trusted context assertion is signed and encrypted + * by Amazon Web Services STS. *

*

* Returns a reference to this object so that method calls can be chained @@ -149,7 +170,9 @@ public void setContextAssertion(String contextAssertion) { * Length: 4 - 2048
* * @param contextAssertion

- * Reserved for future use. + * The signed and encrypted trusted context assertion generated + * by the context provider. The trusted context assertion is + * signed and encrypted by Amazon Web Services STS. *

* @return A reference to this updated object so that method calls can be * chained together.