From 36be180765c5ff8a9f13344580033a85bf1ba46d Mon Sep 17 00:00:00 2001 From: awsmobilesdk Date: Fri, 29 Dec 2023 19:14:13 +0000 Subject: [PATCH] feat(AWSLocation): update models to latest --- AWSLocation/AWSLocationModel.h | 7 ++++++- AWSLocation/AWSLocationModel.m | 1 + AWSLocation/AWSLocationResources.m | 8 +++++++- 3 files changed, 14 insertions(+), 2 deletions(-) diff --git a/AWSLocation/AWSLocationModel.h b/AWSLocation/AWSLocationModel.h index 4c5029fff52..2ed4fbf71fb 100644 --- a/AWSLocation/AWSLocationModel.h +++ b/AWSLocation/AWSLocationModel.h @@ -317,7 +317,7 @@ typedef NS_ENUM(NSInteger, AWSLocationVehicleWeightUnit) { @property (nonatomic, strong) NSArray * _Nullable allowReferers; /** -

A list of allowed resource ARNs that a API key bearer can perform actions on.

For more information about ARN format, see Amazon Resource Names (ARNs).

+

A list of allowed resource ARNs that a API key bearer can perform actions on.

For more information about ARN format, see Amazon Resource Names (ARNs).

*/ @property (nonatomic, strong) NSArray * _Nullable allowResources; @@ -1463,6 +1463,11 @@ typedef NS_ENUM(NSInteger, AWSLocationVehicleWeightUnit) { @interface AWSLocationDeleteKeyRequest : AWSRequest +/** +

ForceDelete bypasses an API key's expiry conditions and deletes the key. Set the parameter true to delete the key or to false to not preemptively delete the API key.

Valid values: true, or false.

Required: No

This action is irreversible. Only use ForceDelete if you are certain the key is no longer in use.

+ */ +@property (nonatomic, strong) NSNumber * _Nullable forceDelete; + /**

The name of the API key to delete.

*/ diff --git a/AWSLocation/AWSLocationModel.m b/AWSLocation/AWSLocationModel.m index 1bf7cfe59d0..0fe4eaa29b1 100644 --- a/AWSLocation/AWSLocationModel.m +++ b/AWSLocation/AWSLocationModel.m @@ -1454,6 +1454,7 @@ + (BOOL)supportsSecureCoding { + (NSDictionary *)JSONKeyPathsByPropertyKey { return @{ + @"forceDelete" : @"ForceDelete", @"keyName" : @"KeyName", }; } diff --git a/AWSLocation/AWSLocationResources.m b/AWSLocation/AWSLocationResources.m index da2b0145e13..16765c2958b 100644 --- a/AWSLocation/AWSLocationResources.m +++ b/AWSLocation/AWSLocationResources.m @@ -1250,7 +1250,7 @@ - (NSString *)definitionString { },\ \"AllowResources\":{\ \"shape\":\"ApiKeyRestrictionsAllowResourcesList\",\ - \"documentation\":\"

A list of allowed resource ARNs that a API key bearer can perform actions on.

  • 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.

  • The resources must be in the same partition, region, and account-id as the key that is being created.

  • Other than wildcards, you must include the full ARN, including the arn, partition, service, region, account-id and resource-id, delimited by colons (:).

  • No spaces allowed, even with wildcards. For example, arn:aws:geo:region:account-id:map/ExampleMap*.

For more information about ARN format, see Amazon Resource Names (ARNs).

\"\ + \"documentation\":\"

A list of allowed resource ARNs that a API key bearer can perform actions on.

  • 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.

  • The resources must be in the same partition, region, and account-id as the key that is being created.

  • Other than wildcards, you must include the full ARN, including the arn, partition, service, region, account-id and resource-id delimited by colons (:).

  • No spaces allowed, even with wildcards. For example, arn:aws:geo:region:account-id:map/ExampleMap*.

For more information about ARN format, see Amazon Resource Names (ARNs).

\"\ }\ },\ \"documentation\":\"

API Restrictions on the allowed actions, resources, and referers for an API key resource.

\"\ @@ -2513,6 +2513,12 @@ - (NSString *)definitionString { \"type\":\"structure\",\ \"required\":[\"KeyName\"],\ \"members\":{\ + \"ForceDelete\":{\ + \"shape\":\"Boolean\",\ + \"documentation\":\"

ForceDelete bypasses an API key's expiry conditions and deletes the key. Set the parameter true to delete the key or to false to not preemptively delete the API key.

Valid values: true, or false.

Required: No

This action is irreversible. Only use ForceDelete if you are certain the key is no longer in use.

\",\ + \"location\":\"querystring\",\ + \"locationName\":\"forceDelete\"\ + },\ \"KeyName\":{\ \"shape\":\"ResourceName\",\ \"documentation\":\"

The name of the API key to delete.

\",\