Skip to content

Commit

Permalink
feat(AWSLocation): update models to latest
Browse files Browse the repository at this point in the history
  • Loading branch information
awsmobilesdk committed Dec 29, 2023
1 parent dcaf1b7 commit 36be180
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 2 deletions.
7 changes: 6 additions & 1 deletion AWSLocation/AWSLocationModel.h
Original file line number Diff line number Diff line change
Expand Up @@ -317,7 +317,7 @@ typedef NS_ENUM(NSInteger, AWSLocationVehicleWeightUnit) {
@property (nonatomic, strong) NSArray<NSString *> * _Nullable allowReferers;

/**
<p>A list of allowed resource ARNs that a API key bearer can perform actions on.</p><ul><li><p>The ARN must be the correct ARN for a map, place, or route ARN. You may include wildcards in the resource-id to match multiple resources of the same type.</p></li><li><p>The resources must be in the same <code>partition</code>, <code>region</code>, and <code>account-id</code> as the key that is being created.</p></li><li><p>Other than wildcards, you must include the full ARN, including the <code>arn</code>, <code>partition</code>, <code>service</code>, <code>region</code>, <code>account-id</code> and <code>resource-id</code>, delimited by colons (:).</p></li><li><p>No spaces allowed, even with wildcards. For example, <code>arn:aws:geo:region:<i>account-id</i>:map/ExampleMap*</code>.</p></li></ul><p>For more information about ARN format, see <a href="https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html">Amazon Resource Names (ARNs)</a>.</p>
<p>A list of allowed resource ARNs that a API key bearer can perform actions on.</p><ul><li><p>The ARN must be the correct ARN for a map, place, or route ARN. You may include wildcards in the resource-id to match multiple resources of the same type.</p></li><li><p>The resources must be in the same <code>partition</code>, <code>region</code>, and <code>account-id</code> as the key that is being created.</p></li><li><p>Other than wildcards, you must include the full ARN, including the <code>arn</code>, <code>partition</code>, <code>service</code>, <code>region</code>, <code>account-id</code> and <code>resource-id</code> delimited by colons (:).</p></li><li><p>No spaces allowed, even with wildcards. For example, <code>arn:aws:geo:region:<i>account-id</i>:map/ExampleMap*</code>.</p></li></ul><p>For more information about ARN format, see <a href="https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html">Amazon Resource Names (ARNs)</a>.</p>
*/
@property (nonatomic, strong) NSArray<NSString *> * _Nullable allowResources;

Expand Down Expand Up @@ -1463,6 +1463,11 @@ typedef NS_ENUM(NSInteger, AWSLocationVehicleWeightUnit) {
@interface AWSLocationDeleteKeyRequest : AWSRequest


/**
<p>ForceDelete bypasses an API key's expiry conditions and deletes the key. Set the parameter <code>true</code> to delete the key or to <code>false</code> to not preemptively delete the API key.</p><p>Valid values: <code>true</code>, or <code>false</code>.</p><p>Required: No</p><note><p>This action is irreversible. Only use ForceDelete if you are certain the key is no longer in use.</p></note>
*/
@property (nonatomic, strong) NSNumber * _Nullable forceDelete;

/**
<p>The name of the API key to delete.</p>
*/
Expand Down
1 change: 1 addition & 0 deletions AWSLocation/AWSLocationModel.m
Original file line number Diff line number Diff line change
Expand Up @@ -1454,6 +1454,7 @@ + (BOOL)supportsSecureCoding {

+ (NSDictionary *)JSONKeyPathsByPropertyKey {
return @{
@"forceDelete" : @"ForceDelete",
@"keyName" : @"KeyName",
};
}
Expand Down
8 changes: 7 additions & 1 deletion AWSLocation/AWSLocationResources.m
Original file line number Diff line number Diff line change
Expand Up @@ -1250,7 +1250,7 @@ - (NSString *)definitionString {
},\
\"AllowResources\":{\
\"shape\":\"ApiKeyRestrictionsAllowResourcesList\",\
\"documentation\":\"<p>A list of allowed resource ARNs that a API key bearer can perform actions on.</p> <ul> <li> <p>The ARN must be the correct ARN for a map, place, or route ARN. You may include wildcards in the resource-id to match multiple resources of the same type.</p> </li> <li> <p>The resources must be in the same <code>partition</code>, <code>region</code>, and <code>account-id</code> as the key that is being created.</p> </li> <li> <p>Other than wildcards, you must include the full ARN, including the <code>arn</code>, <code>partition</code>, <code>service</code>, <code>region</code>, <code>account-id</code> and <code>resource-id</code>, delimited by colons (:).</p> </li> <li> <p>No spaces allowed, even with wildcards. For example, <code>arn:aws:geo:region:<i>account-id</i>:map/ExampleMap*</code>.</p> </li> </ul> <p>For more information about ARN format, see <a href=\\\"https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html\\\">Amazon Resource Names (ARNs)</a>.</p>\"\
\"documentation\":\"<p>A list of allowed resource ARNs that a API key bearer can perform actions on.</p> <ul> <li> <p>The ARN must be the correct ARN for a map, place, or route ARN. You may include wildcards in the resource-id to match multiple resources of the same type.</p> </li> <li> <p>The resources must be in the same <code>partition</code>, <code>region</code>, and <code>account-id</code> as the key that is being created.</p> </li> <li> <p>Other than wildcards, you must include the full ARN, including the <code>arn</code>, <code>partition</code>, <code>service</code>, <code>region</code>, <code>account-id</code> and <code>resource-id</code> delimited by colons (:).</p> </li> <li> <p>No spaces allowed, even with wildcards. For example, <code>arn:aws:geo:region:<i>account-id</i>:map/ExampleMap*</code>.</p> </li> </ul> <p>For more information about ARN format, see <a href=\\\"https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html\\\">Amazon Resource Names (ARNs)</a>.</p>\"\
}\
},\
\"documentation\":\"<p>API Restrictions on the allowed actions, resources, and referers for an API key resource.</p>\"\
Expand Down Expand Up @@ -2513,6 +2513,12 @@ - (NSString *)definitionString {
\"type\":\"structure\",\
\"required\":[\"KeyName\"],\
\"members\":{\
\"ForceDelete\":{\
\"shape\":\"Boolean\",\
\"documentation\":\"<p>ForceDelete bypasses an API key's expiry conditions and deletes the key. Set the parameter <code>true</code> to delete the key or to <code>false</code> to not preemptively delete the API key.</p> <p>Valid values: <code>true</code>, or <code>false</code>.</p> <p>Required: No</p> <note> <p>This action is irreversible. Only use ForceDelete if you are certain the key is no longer in use.</p> </note>\",\
\"location\":\"querystring\",\
\"locationName\":\"forceDelete\"\
},\
\"KeyName\":{\
\"shape\":\"ResourceName\",\
\"documentation\":\"<p>The name of the API key to delete.</p>\",\
Expand Down

0 comments on commit 36be180

Please sign in to comment.