8000 Update ASF APIs by localstack-bot · Pull Request #9146 · localstack/localstack · GitHub
[go: up one dir, main page]

Skip to content

Update ASF APIs #9146

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Sep 14, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
54 changes: 54 additions & 0 deletions localstack/aws/api/ec2/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -1040,6 +1040,14 @@ class ImageAttributeName(str):
imdsSupport = "imdsSupport"


class ImageBlockPublicAccessDisabledState(str):
unblocked = "unblocked"


class ImageBlockPublicAccessEnabledState(str):
block_new_sharing = "block-new-sharing"


class ImageState(str):
pending = "pending"
available = "available"
Expand Down Expand Up @@ -13828,6 +13836,14 @@ class DisableFastSnapshotRestoresResult(TypedDict, total=False):
Unsuccessful: Optional[DisableFastSnapshotRestoreErrorSet]


class DisableImageBlockPublicAccessRequest(ServiceRequest):
DryRun: Optional[Boolean]


class DisableImageBlockPublicAccessResult(TypedDict, total=False):
ImageBlockPublicAccessState: Optional[ImageBlockPublicAccessDisabledState]


class DisableImageDeprecationRequest(ServiceRequest):
ImageId: ImageId
DryRun: Optional[Boolean]
Expand Down Expand Up @@ -14188,6 +14204,15 @@ class EnableFastSnapshotRestoresResult(TypedDict, total=False):
Unsuccessful: Optional[EnableFastSnapshotRestoreErrorSet]


class EnableImageBlockPublicAccessRequest(ServiceRequest):
ImageBlockPublicAccessState: ImageBlockPublicAccessEnabledState
DryRun: Optional[Boolean]


class EnableImageBlockPublicAccessResult(TypedDict, total=False):
ImageBlockPublicAccessState: Optional[ImageBlockPublicAccessEnabledState]


class EnableImageDeprecationRequest(ServiceRequest):
ImageId: ImageId
DeprecateAt: MillisecondDateTime
Expand Down Expand Up @@ -14517,6 +14542,14 @@ class GetHostReservationPurchasePreviewResult(TypedDict, total=False):
TotalUpfrontPrice: Optional[String]


class GetImageBlockPublicAccessStateRequest(ServiceRequest):
DryRun: Optional[Boolean]


class GetImageBlockPublicAccessStateResult(TypedDict, total=False):
ImageBlockPublicAccessState: Optional[String]


VirtualizationTypeSet = List[VirtualizationType]

8000
Expand Down Expand Up @@ -21600,6 +21633,12 @@ def disable_fast_snapshot_restores(
) -> DisableFastSnapshotRestoresResult:
raise NotImplementedError

@handler("DisableImageBlockPublicAccess")
def disable_image_block_public_access(
self, context: RequestContext, dry_run: Boolean = None
) -> DisableImageBlockPublicAccessResult:
raise NotImplementedError

@handler("DisableImageDeprecation")
def disable_image_deprecation(
self, context: RequestContext, image_id: ImageId, dry_run: Boolean = None
Expand Down Expand Up @@ -21830,6 +21869,15 @@ def enable_fast_snapshot_restores(
) -> EnableFastSnapshotRestoresResult:
raise NotImplementedError

@handler("EnableImageBlockPublicAccess")
def enable_image_block_public_access(
self,
context: RequestContext,
image_block_public_access_state: ImageBlockPublicAccessEnabledState,
dry_run: Boolean = None,
) -> EnableImageBlockPublicAccessResult:
raise NotImplementedError

@handler("EnableImageDeprecation")
def enable_image_deprecation(
self,
Expand Down Expand Up @@ -22063,6 +22111,12 @@ def get_host_reservation_purchase_preview(
) -> GetHostReservationPurchasePreviewResult:
raise NotImplementedError

@handler("GetImageBlockPublicAccessState")
def get_image_block_public_access_state(
self, context: RequestContext, dry_run: Boolean = None
) -> GetImageBlockPublicAccessStateResult:
raise NotImplementedError

@handler("GetInstanceTypesFromInstanceRequirements")
def get_instance_types_from_instance_requirements(
self,
Expand Down
22 changes: 13 additions & 9 deletions localstack/aws/api/events/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
ArchiveStateReason = str
Arn = str
AuthHeaderParameters = str
AuthHeaderParametersSensitive = str
Boolean = bool
CapacityProvider = str
CapacityProviderStrategyItemBase = int
Expand Down Expand Up @@ -49,6 +50,7 @@
EventSourceNamePrefix = str
HeaderKey = str
HeaderValue = str
HeaderValueSensitive = str
HealthCheck = str
HomeRegion = str
HttpsEndpoint = str
Expand All @@ -72,6 +74,7 @@
Principal = str
QueryStringKey = str
QueryStringValue = str
QueryStringValueSensitive = str
RedshiftSecretManagerArn = str
ReferenceId = str
ReplayArn = str
Expand All @@ -91,6 +94,7 @@
SageMakerPipelineParameterValue = str
ScheduleExpression = str
SecretsManagerSecretArn = str
SensitiveString = str
Sql = str
StatementId = str
StatementName = str
Expand Down Expand Up @@ -380,7 +384,7 @@ class ConnectionApiKeyAuthResponseParameters(TypedDict, total=False):

class ConnectionBodyParameter(TypedDict, total=False):
Key: Optional[String]
Value: Optional[String]
Value: Optional[SensitiveString]
IsValueSecret: Optional[Boolean]


Expand All @@ -389,7 +393,7 @@ class ConnectionBodyParameter(TypedDict, total=False):

class ConnectionQueryStringParameter(TypedDict, total=False):
Key: Optional[QueryStringKey]
Value: Optional[QueryStringValue]
Value: Optional[QueryStringValueSensitive]
IsValueSecret: Optional[Boolean]


Expand All @@ -398,7 +402,7 @@ class ConnectionQueryStringParameter(TypedDict, total=False):

class ConnectionHeaderParameter(TypedDict, total=False):
Key: Optional[HeaderKey]
Value: Optional[HeaderValue]
Value: Optional[HeaderValueSensitive]
IsValueSecret: Optional[Boolean]


Expand Down Expand Up @@ -469,12 +473,12 @@ class CreateArchiveResponse(TypedDict, total=False):

class CreateConnectionApiKeyAuthRequestParameters(TypedDict, total=False):
ApiKeyName: AuthHeaderParameters
ApiKeyValue: AuthHeaderParameters
ApiKeyValue: AuthHeaderParametersSensitive


class CreateConnectionOAuthClientRequestParameters(TypedDict, total=False):
ClientID: AuthHeaderParameters
ClientSecret: AuthHeaderParameters
ClientSecret: AuthHeaderParametersSensitive


class CreateConnectionOAuthRequestParameters(TypedDict, total=False):
Expand All @@ -486,7 +490,7 @@ class CreateConnectionOAuthRequestParameters(TypedDict, total=False):

class CreateConnectionBasicAuthRequestParameters(TypedDict, total=False):
Username: AuthHeaderParameters
Password: AuthHeaderParameters
Password: AuthHeaderParametersSensitive


class CreateConnectionAuthRequestParameters(TypedDict, total=False):
Expand Down Expand Up @@ -1405,12 +1409,12 @@ class UpdateArchiveResponse(TypedDict, total=False):

class UpdateConnectionApiKeyAuthRequestParameters(TypedDict, total=False):
ApiKeyName: Optional[AuthHeaderParameters]
ApiKeyValue: Optional[AuthHeaderParameters]
ApiKeyValue: Optional[AuthHeaderParametersSensitive]


class UpdateConnectionOAuthClientRequestParameters(TypedDict, total=False):
ClientID: Optional[AuthHeaderParameters]
ClientSecret: Optional[AuthHeaderParameters]
ClientSecret: Optional[AuthHeaderParametersSensitive]


class UpdateConnectionOAuthRequestParameters(TypedDict, total=False):
Expand All @@ -1422,7 +1426,7 @@ class UpdateConnectionOAuthRequestParameters(TypedDict, total=False):

class UpdateConnectionBasicAuthRequestParameters(TypedDict, total=False):
Username: Optional[AuthHeaderParameters]
Password: Optional[AuthHeaderParameters]
Password: Optional[AuthHeaderParametersSensitive]


class UpdateConnectionAuthRequestParameters(TypedDict, total=False):
Expand Down
15 changes: 15 additions & 0 deletions localstack/aws/api/firehose/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,11 @@ class ContentEncoding(str):
GZIP = "GZIP"


class DefaultDocumentIdFormat(str):
FIREHOSE_DEFAULT = "FIREHOSE_DEFAULT"
NO_DOCUMENT_ID = "NO_DOCUMENT_ID"


class DeliveryStreamEncryptionStatus(str):
ENABLED = "ENABLED"
ENABLING = "ENABLING"
Expand Down Expand Up @@ -425,6 +430,10 @@ class AmazonopensearchserviceBufferingHints(TypedDict, total=False):
SizeInMBs: Optional[AmazonopensearchserviceBufferingSizeInMBs]


class DocumentIdOptions(TypedDict, total=False):
DefaultDocumentIdFormat: DefaultDocumentIdFormat


class AmazonopensearchserviceRetryOptions(TypedDict, total=False):
DurationInSeconds: Optional[AmazonopensearchserviceRetryDurationInSeconds]

Expand All @@ -443,6 +452,7 @@ class AmazonopensearchserviceDestinationConfiguration(TypedDict, total=False):
ProcessingConfiguration: Optional[ProcessingConfiguration]
CloudWatchLoggingOptions: Optional[CloudWatchLoggingOptions]
VpcConfiguration: Optional[VpcConfiguration]
DocumentIdOptions: Optional[DocumentIdOptions]


class AmazonopensearchserviceDestinationDescription(TypedDict, total=False):
Expand All @@ -459,6 +469,7 @@ class AmazonopensearchserviceDestinationDescription(TypedDict, total=False):
ProcessingConfiguration: Optional[ProcessingConfiguration]
CloudWatchLoggingOptions: Optional[CloudWatchLoggingOptions]
VpcConfigurationDescription: Optional[VpcConfigurationDescription]
DocumentIdOptions: Optional[DocumentIdOptions]


class AmazonopensearchserviceDestinationUpdate(TypedDict, total=False):
Expand All @@ -473,6 +484,7 @@ class AmazonopensearchserviceDestinationUpdate(TypedDict, total=False):
S3Update: Optional[S3DestinationUpdate]
ProcessingConfiguration: Optional[ProcessingConfiguration]
CloudWatchLoggingOptions: Optional[CloudWatchLoggingOptions]
DocumentIdOptions: Optional[DocumentIdOptions]


ColumnToJsonKeyMappings = Dict[NonEmptyStringWithoutWhitespace, NonEmptyString]
Expand Down Expand Up @@ -571,6 +583,7 @@ class ElasticsearchDestinationConfiguration(TypedDict, total=False):
ProcessingConfiguration: Optional[ProcessingConfiguration]
CloudWatchLoggingOptions: Optional[CloudWatchLoggingOptions]
VpcConfiguration: Optional[VpcConfiguration]
DocumentIdOptions: Optional[DocumentIdOptions]


class RedshiftRetryOptions(TypedDict, total=False):
Expand Down Expand Up @@ -780,6 +793,7 @@ class ElasticsearchDestinationDescription(TypedDict, total=False):
ProcessingConfiguration: Optional[ProcessingConfiguration]
CloudWatchLoggingOptions: Optional[CloudWatchLoggingOptions]
VpcConfigurationDescription: Optional[VpcConfigurationDescription]
DocumentIdOptions: Optional[DocumentIdOptions]


class RedshiftDestinationDescription(TypedDict, total=False):
Expand Down Expand Up @@ -895,6 +909,7 @@ class ElasticsearchDestinationUpdate(TypedDict, total=False):
S3Update: Optional[S3DestinationUpdate]
ProcessingConfiguration: Optional[ProcessingConfiguration]
CloudWatchLoggingOptions: Optional[CloudWatchLoggingOptions]
DocumentIdOptions: Optional[DocumentIdOptions]


class ExtendedS3DestinationUpdate(TypedDict, total=False):
Expand Down
4 changes: 4 additions & 0 deletions localstack/aws/api/s3/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -232,6 +232,8 @@ class BucketLocationConstraint(str):
us_gov_west_1 = "us-gov-west-1"
us_west_1 = "us-west-1"
us_west_2 = "us-west-2"
ap_south_2 = "ap-south-2"
eu_south_2 = "eu-south-2"


class BucketLogsPermission(str):
Expand Down Expand Up @@ -368,6 +370,8 @@ class InventoryOptionalField(str):
IntelligentTieringAccessTier = "IntelligentTieringAccessTier"
BucketKeyStatus = "BucketKeyStatus"
ChecksumAlgorithm = "ChecksumAlgorithm"
ObjectAccessControlList = "ObjectAccessControlList"
ObjectOwner = "ObjectOwner"


class JSONType(str):
Expand Down
0