Skip to content

Commit

Permalink
Updates from spec version 116.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
markpeek authored Mar 17, 2023
1 parent 05b0db0 commit d49006f
Show file tree
Hide file tree
Showing 9 changed files with 170 additions and 7 deletions.
28 changes: 28 additions & 0 deletions troposphere/athena.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,16 @@ class PreparedStatement(AWSObject):
}


class CustomerContentEncryptionConfiguration(AWSProperty):
"""
`CustomerContentEncryptionConfiguration <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-athena-workgroup-customercontentencryptionconfiguration.html>`__
"""

props: PropsDictType = {
"KmsKey": (str, True),
}


class EngineVersion(AWSProperty):
"""
`EngineVersion <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-athena-workgroup-engineversion.html>`__
Expand All @@ -69,6 +79,16 @@ class EngineVersion(AWSProperty):
}


class AclConfiguration(AWSProperty):
"""
`AclConfiguration <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-athena-workgroup-aclconfiguration.html>`__
"""

props: PropsDictType = {
"S3AclOption": (str, True),
}


class EncryptionConfiguration(AWSProperty):
"""
`EncryptionConfiguration <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-athena-workgroup-encryptionconfiguration.html>`__
Expand All @@ -86,7 +106,9 @@ class ResultConfiguration(AWSProperty):
"""

props: PropsDictType = {
"AclConfiguration": (AclConfiguration, False),
"EncryptionConfiguration": (EncryptionConfiguration, False),
"ExpectedBucketOwner": (str, False),
"OutputLocation": (str, False),
}

Expand All @@ -97,9 +119,15 @@ class WorkGroupConfiguration(AWSProperty):
"""

props: PropsDictType = {
"AdditionalConfiguration": (str, False),
"BytesScannedCutoffPerQuery": (integer, False),
"CustomerContentEncryptionConfiguration": (
CustomerContentEncryptionConfiguration,
False,
),
"EnforceWorkGroupConfiguration": (boolean, False),
"EngineVersion": (EngineVersion, False),
"ExecutionRole": (str, False),
"PublishCloudWatchMetricsEnabled": (boolean, False),
"RequesterPaysEnabled": (boolean, False),
"ResultConfiguration": (ResultConfiguration, False),
Expand Down
1 change: 1 addition & 0 deletions troposphere/cassandra.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@ class Table(AWSObject):

props: PropsDictType = {
"BillingMode": (BillingMode, False),
"ClientSideTimestampsEnabled": (boolean, False),
"ClusteringKeyColumns": ([ClusteringKeyColumn], False),
"DefaultTimeToLive": (integer, False),
"EncryptionSpecification": (EncryptionSpecification, False),
Expand Down
20 changes: 20 additions & 0 deletions troposphere/chatbot.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,26 @@
from .validators.chatbot import validate_logginglevel


class MicrosoftTeamsChannelConfiguration(AWSObject):
"""
`MicrosoftTeamsChannelConfiguration <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-chatbot-microsoftteamschannelconfiguration.html>`__
"""

resource_type = "AWS::Chatbot::MicrosoftTeamsChannelConfiguration"

props: PropsDictType = {
"ConfigurationName": (str, True),
"GuardrailPolicies": ([str], False),
"IamRoleArn": (str, True),
"LoggingLevel": (str, False),
"SnsTopicArns": ([str], False),
"TeamId": (str, True),
"TeamsChannelId": (str, True),
"TeamsTenantId": (str, True),
"UserRoleRequired": (boolean, False),
}


class SlackChannelConfiguration(AWSObject):
"""
`SlackChannelConfiguration <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-chatbot-slackchannelconfiguration.html>`__
Expand Down
2 changes: 1 addition & 1 deletion troposphere/elasticloadbalancingv2.py
Original file line number Diff line number Diff line change
Expand Up @@ -328,7 +328,7 @@ class ListenerRule(AWSObject):
props: PropsDictType = {
"Actions": ([ListenerRuleAction], True),
"Conditions": ([Condition], True),
"ListenerArn": (str, True),
"ListenerArn": (str, False),
"Priority": (integer, True),
}

Expand Down
5 changes: 1 addition & 4 deletions troposphere/mediapackage.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,10 +105,7 @@ class EncryptionContractConfiguration(AWSProperty):
`EncryptionContractConfiguration <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-mediapackage-packagingconfiguration-encryptioncontractconfiguration.html>`__
"""

props: PropsDictType = {
"PresetSpeke20Audio": (str, True),
"PresetSpeke20Video": (str, True),
}
props: PropsDictType = {}


class OriginEndpointSpekeKeyProvider(AWSProperty):
Expand Down
1 change: 1 addition & 0 deletions troposphere/rum.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ class MetricDefinition(AWSProperty):
"DimensionKeys": (dict, False),
"EventPattern": (str, False),
"Name": (str, True),
"Namespace": (str, False),
"UnitLabel": (str, False),
"ValueKey": (str, False),
}
Expand Down
1 change: 1 addition & 0 deletions troposphere/s3.py
Original file line number Diff line number Diff line change
Expand Up @@ -775,6 +775,7 @@ class Region(AWSProperty):

props: PropsDictType = {
"Bucket": (str, True),
"BucketAccountId": (str, False),
}


Expand Down
117 changes: 116 additions & 1 deletion troposphere/sagemaker.py
Original file line number Diff line number Diff line change
Expand Up @@ -665,7 +665,7 @@ class AsyncInferenceConfig(AWSProperty):

class CaptureContentTypeHeader(AWSProperty):
"""
`CaptureContentTypeHeader <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sagemaker-endpointconfig-datacaptureconfig-capturecontenttypeheader.html>`__
`CaptureContentTypeHeader <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sagemaker-inferenceexperiment-capturecontenttypeheader.html>`__
"""

props: PropsDictType = {
Expand Down Expand Up @@ -944,6 +944,109 @@ class ImageVersion(AWSObject):
}


class DataStorageConfig(AWSProperty):
"""
`DataStorageConfig <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sagemaker-inferenceexperiment-datastorageconfig.html>`__
"""

props: PropsDictType = {
"ContentType": (CaptureContentTypeHeader, False),
"Destination": (str, True),
"KmsKey": (str, False),
}


class InferenceExperimentSchedule(AWSProperty):
"""
`InferenceExperimentSchedule <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sagemaker-inferenceexperiment-inferenceexperimentschedule.html>`__
"""

props: PropsDictType = {
"EndTime": (str, False),
"StartTime": (str, False),
}


class RealTimeInferenceConfig(AWSProperty):
"""
`RealTimeInferenceConfig <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sagemaker-inferenceexperiment-realtimeinferenceconfig.html>`__
"""

props: PropsDictType = {
"InstanceCount": (integer, True),
"InstanceType": (str, True),
}


class ModelInfrastructureConfig(AWSProperty):
"""
`ModelInfrastructureConfig <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sagemaker-inferenceexperiment-modelinfrastructureconfig.html>`__
"""

props: PropsDictType = {
"InfrastructureType": (str, True),
"RealTimeInferenceConfig": (RealTimeInferenceConfig, True),
}


class ModelVariantConfig(AWSProperty):
"""
`ModelVariantConfig <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sagemaker-inferenceexperiment-modelvariantconfig.html>`__
"""

props: PropsDictType = {
"InfrastructureConfig": (ModelInfrastructureConfig, True),
"ModelName": (str, True),
"VariantName": (str, True),
}


class ShadowModelVariantConfig(AWSProperty):
"""
`ShadowModelVariantConfig <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sagemaker-inferenceexperiment-shadowmodelvariantconfig.html>`__
"""

props: PropsDictType = {
"SamplingPercentage": (integer, True),
"ShadowModelVariantName": (str, True),
}


class ShadowModeConfig(AWSProperty):
"""
`ShadowModeConfig <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sagemaker-inferenceexperiment-shadowmodeconfig.html>`__
"""

props: PropsDictType = {
"ShadowModelVariants": ([ShadowModelVariantConfig], True),
"SourceModelVariantName": (str, True),
}


class InferenceExperiment(AWSObject):
"""
`InferenceExperiment <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-sagemaker-inferenceexperiment.html>`__
"""

resource_type = "AWS::SageMaker::InferenceExperiment"

props: PropsDictType = {
"DataStorageConfig": (DataStorageConfig, False),
"Description": (str, False),
"DesiredState": (str, False),
"EndpointName": (str, True),
"KmsKey": (str, False),
"ModelVariants": ([ModelVariantConfig], True),
"Name": (str, True),
"RoleArn": (str, True),
"Schedule": (InferenceExperimentSchedule, False),
"ShadowModeConfig": (ShadowModeConfig, False),
"StatusReason": (str, False),
"Tags": (Tags, False),
"Type": (str, True),
}


class RepositoryAuthConfig(AWSProperty):
"""
`RepositoryAuthConfig <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sagemaker-model-containerdefinition-imageconfig-repositoryauthconfig.html>`__
Expand Down Expand Up @@ -2292,6 +2395,18 @@ class Workteam(AWSObject):
}


class EndpointMetadata(AWSProperty):
"""
`EndpointMetadata <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sagemaker-inferenceexperiment-endpointmetadata.html>`__
"""

props: PropsDictType = {
"EndpointConfigName": (str, False),
"EndpointName": (str, True),
"EndpointStatus": (str, False),
}


class RSessionAppSettings(AWSProperty):
"""
`RSessionAppSettings <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sagemaker-domain-rsessionappsettings.html>`__
Expand Down
2 changes: 1 addition & 1 deletion troposphere/ssmcontacts.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ class Contact(AWSObject):
props: PropsDictType = {
"Alias": (str, True),
"DisplayName": (str, True),
"Plan": ([Stage], True),
"Plan": ([Stage], False),
"Type": (str, True),
}

Expand Down

0 comments on commit d49006f

Please sign in to comment.