Skip to content

Commit

Permalink
Updates from spec version 186.0.0 (#2273)
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] authored Oct 22, 2024
1 parent ca9d47e commit df4d439
Show file tree
Hide file tree
Showing 11 changed files with 348 additions and 8 deletions.
163 changes: 157 additions & 6 deletions troposphere/b2bi.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@


from . import AWSObject, AWSProperty, PropsDictType, Tags
from .validators import boolean


class X12Details(AWSProperty):
Expand All @@ -22,7 +23,7 @@ class X12Details(AWSProperty):

class EdiType(AWSProperty):
"""
`EdiType <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-b2bi-transformer-editype.html>`__
`EdiType <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-b2bi-capability-editype.html>`__
"""

props: PropsDictType = {
Expand All @@ -47,6 +48,7 @@ class EdiConfiguration(AWSProperty):
"""

props: PropsDictType = {
"CapabilityDirection": (str, False),
"InputLocation": (S3Location, True),
"OutputLocation": (S3Location, True),
"TransformerId": (str, True),
Expand Down Expand Up @@ -80,6 +82,89 @@ class Capability(AWSObject):
}


class X12Delimiters(AWSProperty):
"""
`X12Delimiters <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-b2bi-partnership-x12delimiters.html>`__
"""

props: PropsDictType = {
"ComponentSeparator": (str, False),
"DataElementSeparator": (str, False),
"SegmentTerminator": (str, False),
}


class X12FunctionalGroupHeaders(AWSProperty):
"""
`X12FunctionalGroupHeaders <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-b2bi-partnership-x12functionalgroupheaders.html>`__
"""

props: PropsDictType = {
"ApplicationReceiverCode": (str, False),
"ApplicationSenderCode": (str, False),
"ResponsibleAgencyCode": (str, False),
}


class X12InterchangeControlHeaders(AWSProperty):
"""
`X12InterchangeControlHeaders <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-b2bi-partnership-x12interchangecontrolheaders.html>`__
"""

props: PropsDictType = {
"AcknowledgmentRequestedCode": (str, False),
"ReceiverId": (str, False),
"ReceiverIdQualifier": (str, False),
"RepetitionSeparator": (str, False),
"SenderId": (str, False),
"SenderIdQualifier": (str, False),
"UsageIndicatorCode": (str, False),
}


class X12OutboundEdiHeaders(AWSProperty):
"""
`X12OutboundEdiHeaders <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-b2bi-partnership-x12outboundediheaders.html>`__
"""

props: PropsDictType = {
"Delimiters": (X12Delimiters, False),
"FunctionalGroupHeaders": (X12FunctionalGroupHeaders, False),
"InterchangeControlHeaders": (X12InterchangeControlHeaders, False),
"ValidateEdi": (boolean, False),
}


class X12Envelope(AWSProperty):
"""
`X12Envelope <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-b2bi-partnership-x12envelope.html>`__
"""

props: PropsDictType = {
"Common": (X12OutboundEdiHeaders, False),
}


class OutboundEdiOptions(AWSProperty):
"""
`OutboundEdiOptions <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-b2bi-partnership-outboundedioptions.html>`__
"""

props: PropsDictType = {
"X12": (X12Envelope, True),
}


class CapabilityOptions(AWSProperty):
"""
`CapabilityOptions <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-b2bi-partnership-capabilityoptions.html>`__
"""

props: PropsDictType = {
"OutboundEdi": (OutboundEdiOptions, False),
}


class Partnership(AWSObject):
"""
`Partnership <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-b2bi-partnership.html>`__
Expand All @@ -88,7 +173,8 @@ class Partnership(AWSObject):
resource_type = "AWS::B2BI::Partnership"

props: PropsDictType = {
"Capabilities": ([str], False),
"Capabilities": ([str], True),
"CapabilityOptions": (CapabilityOptions, False),
"Email": (str, True),
"Name": (str, True),
"Phone": (str, False),
Expand All @@ -114,6 +200,71 @@ class Profile(AWSObject):
}


class FormatOptions(AWSProperty):
"""
`FormatOptions <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-b2bi-transformer-formatoptions.html>`__
"""

props: PropsDictType = {
"X12": (X12Details, True),
}


class InputConversion(AWSProperty):
"""
`InputConversion <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-b2bi-transformer-inputconversion.html>`__
"""

props: PropsDictType = {
"FormatOptions": (FormatOptions, False),
"FromFormat": (str, True),
}


class Mapping(AWSProperty):
"""
`Mapping <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-b2bi-transformer-mapping.html>`__
"""

props: PropsDictType = {
"Template": (str, False),
"TemplateLanguage": (str, True),
}


class OutputConversion(AWSProperty):
"""
`OutputConversion <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-b2bi-transformer-outputconversion.html>`__
"""

props: PropsDictType = {
"FormatOptions": (FormatOptions, False),
"ToFormat": (str, True),
}


class SampleDocumentKeys(AWSProperty):
"""
`SampleDocumentKeys <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-b2bi-transformer-sampledocumentkeys.html>`__
"""

props: PropsDictType = {
"Input": (str, False),
"Output": (str, False),
}


class SampleDocuments(AWSProperty):
"""
`SampleDocuments <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-b2bi-transformer-sampledocuments.html>`__
"""

props: PropsDictType = {
"BucketName": (str, True),
"Keys": ([SampleDocumentKeys], True),
}


class Transformer(AWSObject):
"""
`Transformer <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-b2bi-transformer.html>`__
Expand All @@ -122,11 +273,11 @@ class Transformer(AWSObject):
resource_type = "AWS::B2BI::Transformer"

props: PropsDictType = {
"EdiType": (EdiType, True),
"FileFormat": (str, True),
"MappingTemplate": (str, True),
"InputConversion": (InputConversion, False),
"Mapping": (Mapping, False),
"Name": (str, True),
"SampleDocument": (str, False),
"OutputConversion": (OutputConversion, False),
"SampleDocuments": (SampleDocuments, False),
"Status": (str, True),
"Tags": (Tags, False),
}
1 change: 1 addition & 0 deletions troposphere/cloudformation.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ class CustomResource(AWSObject):
resource_type = "AWS::CloudFormation::CustomResource"

props: PropsDictType = {
"ServiceTimeout": (integer, False),
"ServiceToken": (str, True),
}

Expand Down
1 change: 1 addition & 0 deletions troposphere/dms.py
Original file line number Diff line number Diff line change
Expand Up @@ -630,6 +630,7 @@ class ReplicationInstance(AWSObject):
"EngineVersion": (str, False),
"KmsKeyId": (str, False),
"MultiAZ": (boolean, False),
"NetworkType": (str, False),
"PreferredMaintenanceWindow": (str, False),
"PubliclyAccessible": (boolean, False),
"ReplicationInstanceClass": (str, True),
Expand Down
50 changes: 50 additions & 0 deletions troposphere/emr.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,13 +84,26 @@ class Configuration(AWSProperty):
}


class OnDemandCapacityReservationOptions(AWSProperty):
"""
`OnDemandCapacityReservationOptions <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticmapreduce-instancefleetconfig-ondemandcapacityreservationoptions.html>`__
"""

props: PropsDictType = {
"CapacityReservationPreference": (str, False),
"CapacityReservationResourceGroupArn": (str, False),
"UsageStrategy": (str, False),
}


class OnDemandProvisioningSpecification(AWSProperty):
"""
`OnDemandProvisioningSpecification <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticmapreduce-instancefleetconfig-ondemandprovisioningspecification.html>`__
"""

props: PropsDictType = {
"AllocationStrategy": (str, True),
"CapacityReservationOptions": (OnDemandCapacityReservationOptions, False),
}

def validate(self):
Expand Down Expand Up @@ -124,6 +137,40 @@ class InstanceFleetProvisioningSpecifications(AWSProperty):
}


class OnDemandResizingSpecification(AWSProperty):
"""
`OnDemandResizingSpecification <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticmapreduce-instancefleetconfig-ondemandresizingspecification.html>`__
"""

props: PropsDictType = {
"AllocationStrategy": (str, False),
"CapacityReservationOptions": (OnDemandCapacityReservationOptions, False),
"TimeoutDurationMinutes": (integer, False),
}


class SpotResizingSpecification(AWSProperty):
"""
`SpotResizingSpecification <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticmapreduce-instancefleetconfig-spotresizingspecification.html>`__
"""

props: PropsDictType = {
"AllocationStrategy": (str, False),
"TimeoutDurationMinutes": (integer, False),
}


class InstanceFleetResizingSpecifications(AWSProperty):
"""
`InstanceFleetResizingSpecifications <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticmapreduce-instancefleetconfig-instancefleetresizingspecifications.html>`__
"""

props: PropsDictType = {
"OnDemandResizeSpecification": (OnDemandResizingSpecification, False),
"SpotResizeSpecification": (SpotResizingSpecification, False),
}


class VolumeSpecification(AWSProperty):
"""
`VolumeSpecification <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-emr-ebsconfiguration-ebsblockdeviceconfig-volumespecification.html>`__
Expand Down Expand Up @@ -171,6 +218,7 @@ class InstanceTypeConfig(AWSProperty):
"CustomAmiId": (str, False),
"EbsConfiguration": (EbsConfiguration, False),
"InstanceType": (str, True),
"Priority": (double, False),
"WeightedCapacity": (integer, False),
}

Expand All @@ -184,6 +232,7 @@ class InstanceFleetConfigProperty(AWSProperty):
"InstanceTypeConfigs": ([InstanceTypeConfig], False),
"LaunchSpecifications": (InstanceFleetProvisioningSpecifications, False),
"Name": (str, False),
"ResizeSpecifications": (InstanceFleetResizingSpecifications, False),
"TargetOnDemandCapacity": (integer, False),
"TargetSpotCapacity": (integer, False),
}
Expand Down Expand Up @@ -460,6 +509,7 @@ class InstanceFleetConfig(AWSObject):
"InstanceTypeConfigs": ([InstanceTypeConfig], False),
"LaunchSpecifications": (InstanceFleetProvisioningSpecifications, False),
"Name": (str, False),
"ResizeSpecifications": (InstanceFleetResizingSpecifications, False),
"TargetOnDemandCapacity": (integer, False),
"TargetSpotCapacity": (integer, False),
}
Expand Down
40 changes: 40 additions & 0 deletions troposphere/glue.py
Original file line number Diff line number Diff line change
Expand Up @@ -549,6 +549,7 @@ class Job(AWSObject):
"ExecutionProperty": (ExecutionProperty, False),
"GlueVersion": (str, False),
"JobMode": (str, False),
"JobRunQueuingEnabled": (boolean, False),
"LogUri": (str, False),
"MaintenanceWindow": (str, False),
"MaxCapacity": (double, False),
Expand Down Expand Up @@ -1098,6 +1099,45 @@ class Trigger(AWSObject):
}


class ConfigurationObject(AWSProperty):
"""
`ConfigurationObject <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-glue-usageprofile-configurationobject.html>`__
"""

props: PropsDictType = {
"AllowedValues": ([str], False),
"DefaultValue": (str, False),
"MaxValue": (str, False),
"MinValue": (str, False),
}


class ProfileConfiguration(AWSProperty):
"""
`ProfileConfiguration <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-glue-usageprofile-profileconfiguration.html>`__
"""

props: PropsDictType = {
"JobConfiguration": (dict, False),
"SessionConfiguration": (dict, False),
}


class UsageProfile(AWSObject):
"""
`UsageProfile <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-glue-usageprofile.html>`__
"""

resource_type = "AWS::Glue::UsageProfile"

props: PropsDictType = {
"Configuration": (ProfileConfiguration, False),
"Description": (str, False),
"Name": (str, True),
"Tags": (Tags, False),
}


class Workflow(AWSObject):
"""
`Workflow <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-glue-workflow.html>`__
Expand Down
Loading

0 comments on commit df4d439

Please sign in to comment.