Skip to content
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

Updates from spec version 180.0.0 #1

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
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
6 changes: 3 additions & 3 deletions troposphere/acmpca.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ class EdiPartyName(AWSProperty):
"""

props: PropsDictType = {
"NameAssigner": (str, True),
"NameAssigner": (str, False),
"PartyName": (str, True),
}

Expand Down Expand Up @@ -271,7 +271,7 @@ class CrlConfiguration(AWSProperty):
False,
),
"CustomCname": (str, False),
"Enabled": (boolean, False),
"Enabled": (boolean, True),
"ExpirationInDays": (integer, False),
"S3BucketName": (str, False),
"S3ObjectAcl": (str, False),
Expand All @@ -284,7 +284,7 @@ class OcspConfiguration(AWSProperty):
"""

props: PropsDictType = {
"Enabled": (boolean, False),
"Enabled": (boolean, True),
"OcspCustomCname": (str, False),
}

Expand Down
6 changes: 3 additions & 3 deletions troposphere/amazonmq.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,15 +99,15 @@ class Broker(AWSObject):

props: PropsDictType = {
"AuthenticationStrategy": (str, False),
"AutoMinorVersionUpgrade": (boolean, True),
"AutoMinorVersionUpgrade": (boolean, False),
"BrokerName": (str, True),
"Configuration": (ConfigurationId, False),
"DataReplicationMode": (str, False),
"DataReplicationPrimaryBrokerArn": (str, False),
"DeploymentMode": (str, True),
"EncryptionOptions": (EncryptionOptions, False),
"EngineType": (str, True),
"EngineVersion": (str, True),
"EngineVersion": (str, False),
"HostInstanceType": (str, True),
"LdapServerMetadata": (LdapServerMetadata, False),
"Logs": (LogsConfiguration, False),
Expand All @@ -133,7 +133,7 @@ class Configuration(AWSObject):
"Data": (str, True),
"Description": (str, False),
"EngineType": (str, True),
"EngineVersion": (str, True),
"EngineVersion": (str, False),
"Name": (str, True),
"Tags": (Tags, False),
}
Expand Down
33 changes: 30 additions & 3 deletions troposphere/autoscaling.py
Original file line number Diff line number Diff line change
Expand Up @@ -582,16 +582,43 @@ class StepAdjustments(AWSProperty):
}


class TargetTrackingMetricStat(AWSProperty):
"""
`TargetTrackingMetricStat <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-autoscaling-scalingpolicy-targettrackingmetricstat.html>`__
"""

props: PropsDictType = {
"Metric": (Metric, True),
"Stat": (str, True),
"Unit": (str, False),
}


class TargetTrackingMetricDataQuery(AWSProperty):
"""
`TargetTrackingMetricDataQuery <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-autoscaling-scalingpolicy-targettrackingmetricdataquery.html>`__
"""

props: PropsDictType = {
"Expression": (str, False),
"Id": (str, True),
"Label": (str, False),
"MetricStat": (TargetTrackingMetricStat, False),
"ReturnData": (boolean, False),
}


class CustomizedMetricSpecification(AWSProperty):
"""
`CustomizedMetricSpecification <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-autoscaling-scalingpolicy-customizedmetricspecification.html>`__
"""

props: PropsDictType = {
"Dimensions": ([MetricDimension], False),
"MetricName": (str, True),
"Namespace": (str, True),
"Statistic": (str, True),
"MetricName": (str, False),
"Metrics": ([TargetTrackingMetricDataQuery], False),
"Namespace": (str, False),
"Statistic": (str, False),
"Unit": (str, False),
}

Expand Down
1 change: 1 addition & 0 deletions troposphere/awslambda.py
Original file line number Diff line number Diff line change
Expand Up @@ -559,6 +559,7 @@ class Version(AWSObject):
"CodeSha256": (str, False),
"Description": (str, False),
"FunctionName": (str, True),
"Policy": (dict, False),
"ProvisionedConcurrencyConfig": (ProvisionedConcurrencyConfiguration, False),
"RuntimePolicy": (RuntimePolicy, False),
}
Expand Down
65 changes: 64 additions & 1 deletion troposphere/bedrock.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,42 @@ class ActionGroupExecutor(AWSProperty):
"""

props: PropsDictType = {
"Lambda": (str, True),
"CustomControl": (str, False),
"Lambda": (str, False),
}


class ParameterDetail(AWSProperty):
"""
`ParameterDetail <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-agent-parameterdetail.html>`__
"""

props: PropsDictType = {
"Description": (str, False),
"Required": (boolean, False),
"Type": (str, True),
}


class Function(AWSProperty):
"""
`Function <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-agent-function.html>`__
"""

props: PropsDictType = {
"Description": (str, False),
"Name": (str, True),
"Parameters": (dict, False),
}


class FunctionSchema(AWSProperty):
"""
`FunctionSchema <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-agent-functionschema.html>`__
"""

props: PropsDictType = {
"Functions": ([Function], True),
}


Expand All @@ -53,6 +88,7 @@ class AgentActionGroup(AWSProperty):
"ActionGroupState": (str, False),
"ApiSchema": (APISchema, False),
"Description": (str, False),
"FunctionSchema": (FunctionSchema, False),
"ParentActionGroupSignature": (str, False),
"SkipResourceInUseCheckOnDelete": (boolean, False),
}
Expand All @@ -70,6 +106,17 @@ class AgentKnowledgeBase(AWSProperty):
}


class GuardrailConfiguration(AWSProperty):
"""
`GuardrailConfiguration <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-agent-guardrailconfiguration.html>`__
"""

props: PropsDictType = {
"GuardrailIdentifier": (str, False),
"GuardrailVersion": (str, False),
}


class InferenceConfiguration(AWSProperty):
"""
`InferenceConfiguration <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-agent-inferenceconfiguration.html>`__
Expand Down Expand Up @@ -125,6 +172,7 @@ class Agent(AWSObject):
"CustomerEncryptionKeyArn": (str, False),
"Description": (str, False),
"FoundationModel": (str, False),
"GuardrailConfiguration": (GuardrailConfiguration, False),
"IdleSessionTTLInSeconds": (double, False),
"Instruction": (str, False),
"KnowledgeBases": ([AgentKnowledgeBase], False),
Expand Down Expand Up @@ -168,6 +216,7 @@ class S3DataSourceConfiguration(AWSProperty):

props: PropsDictType = {
"BucketArn": (str, True),
"BucketOwnerAccountId": (str, False),
"InclusionPrefixes": ([str], False),
}

Expand Down Expand Up @@ -233,6 +282,7 @@ class DataSource(AWSObject):
resource_type = "AWS::Bedrock::DataSource"

props: PropsDictType = {
"DataDeletionPolicy": (str, False),
"DataSourceConfiguration": (DataSourceConfiguration, True),
"Description": (str, False),
"KnowledgeBaseId": (str, True),
Expand Down Expand Up @@ -374,6 +424,19 @@ class Guardrail(AWSObject):
}


class GuardrailVersion(AWSObject):
"""
`GuardrailVersion <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-bedrock-guardrailversion.html>`__
"""

resource_type = "AWS::Bedrock::GuardrailVersion"

props: PropsDictType = {
"Description": (str, False),
"GuardrailIdentifier": (str, True),
}


class VectorKnowledgeBaseConfiguration(AWSProperty):
"""
`VectorKnowledgeBaseConfiguration <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-knowledgebase-vectorknowledgebaseconfiguration.html>`__
Expand Down
13 changes: 13 additions & 0 deletions troposphere/budgets.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,17 @@ class NotificationWithSubscribers(AWSProperty):
}


class ResourceTag(AWSProperty):
"""
`ResourceTag <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-budgets-budgetsaction-resourcetag.html>`__
"""

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


class Budget(AWSObject):
"""
`Budget <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-budgets-budget.html>`__
Expand All @@ -136,6 +147,7 @@ class Budget(AWSObject):
props: PropsDictType = {
"Budget": (BudgetData, True),
"NotificationsWithSubscribers": ([NotificationWithSubscribers], False),
"ResourceTags": ([ResourceTag], False),
}


Expand Down Expand Up @@ -224,5 +236,6 @@ class BudgetsAction(AWSObject):
"Definition": (Definition, True),
"ExecutionRoleArn": (str, True),
"NotificationType": (str, True),
"ResourceTags": ([ResourceTag], False),
"Subscribers": ([ActionSubscriber], True),
}
4 changes: 3 additions & 1 deletion troposphere/chatbot.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
# *** Do not modify - this file is autogenerated ***


from . import AWSObject, PropsDictType
from . import AWSObject, PropsDictType, Tags
from .validators import boolean
from .validators.chatbot import validate_logginglevel

Expand All @@ -24,6 +24,7 @@ class MicrosoftTeamsChannelConfiguration(AWSObject):
"IamRoleArn": (str, True),
"LoggingLevel": (str, False),
"SnsTopicArns": ([str], False),
"Tags": (Tags, False),
"TeamId": (str, True),
"TeamsChannelId": (str, True),
"TeamsTenantId": (str, True),
Expand All @@ -46,5 +47,6 @@ class SlackChannelConfiguration(AWSObject):
"SlackChannelId": (str, True),
"SlackWorkspaceId": (str, True),
"SnsTopicArns": ([str], False),
"Tags": (Tags, False),
"UserRoleRequired": (boolean, False),
}
38 changes: 26 additions & 12 deletions troposphere/codebuild.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,18 @@
)


class VpcConfig(AWSProperty):
"""
`VpcConfig <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codebuild-project-vpcconfig.html>`__
"""

props: PropsDictType = {
"SecurityGroupIds": ([str], False),
"Subnets": ([str], False),
"VpcId": (str, False),
}


class Fleet(AWSObject):
"""
`Fleet <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-codebuild-fleet.html>`__
Expand All @@ -36,7 +48,10 @@ class Fleet(AWSObject):
"BaseCapacity": (integer, False),
"ComputeType": (str, False),
"EnvironmentType": (str, False),
"FleetServiceRole": (str, False),
"FleetVpcConfig": (VpcConfig, False),
"Name": (str, False),
"OverflowBehavior": (str, False),
"Tags": (Tags, False),
}

Expand Down Expand Up @@ -219,6 +234,16 @@ class ProjectSourceVersion(AWSProperty):
}


class ScopeConfiguration(AWSProperty):
"""
`ScopeConfiguration <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codebuild-project-scopeconfiguration.html>`__
"""

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


class ProjectTriggers(AWSProperty):
"""
`ProjectTriggers <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codebuild-project-projecttriggers.html>`__
Expand All @@ -227,6 +252,7 @@ class ProjectTriggers(AWSProperty):
props: PropsDictType = {
"BuildType": (str, False),
"FilterGroups": (list, False),
"ScopeConfiguration": (ScopeConfiguration, False),
"Webhook": (boolean, False),
}

Expand Down Expand Up @@ -291,18 +317,6 @@ def validate(self):
validate_source(self)


class VpcConfig(AWSProperty):
"""
`VpcConfig <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codebuild-project-vpcconfig.html>`__
"""

props: PropsDictType = {
"SecurityGroupIds": ([str], False),
"Subnets": ([str], False),
"VpcId": (str, False),
}


class Project(AWSObject):
"""
`Project <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-codebuild-project.html>`__
Expand Down
11 changes: 11 additions & 0 deletions troposphere/codepipeline.py
Original file line number Diff line number Diff line change
Expand Up @@ -257,6 +257,16 @@ class Blockers(AWSProperty):
}


class FailureConditions(AWSProperty):
"""
`FailureConditions <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codepipeline-pipeline-stages-failure-conditions.html>`__
"""

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


class Stages(AWSProperty):
"""
`Stages <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codepipeline-pipeline-stages.html>`__
Expand All @@ -266,6 +276,7 @@ class Stages(AWSProperty):
"Actions": ([Actions], True),
"Blockers": ([Blockers], False),
"Name": (str, True),
"OnFailure": (FailureConditions, False),
}


Expand Down
Loading