Add attribute type for aws resources
Add type field to the schema of the aws resources. Implements: blueprint add-type-in-attributes-schema closes-bug: #1434539 Change-Id: I883313bf0f66c312cc592c62720dd828be488a5c
This commit is contained in:
parent
0185ad16f4
commit
557d926d40
|
@ -214,7 +214,8 @@ class AutoScalingGroup(instgrp.InstanceGroup, cooldown.CooldownMixin):
|
|||
attributes_schema = {
|
||||
INSTANCE_LIST: attributes.Schema(
|
||||
_("A comma-delimited list of server ip addresses. "
|
||||
"(Heat extension).")
|
||||
"(Heat extension)."),
|
||||
type=attributes.Schema.STRING
|
||||
),
|
||||
}
|
||||
|
||||
|
|
|
@ -87,7 +87,8 @@ class AWSScalingPolicy(heat_sp.AutoScalingPolicy):
|
|||
|
||||
attributes_schema = {
|
||||
ALARM_URL: attributes.Schema(
|
||||
_("A signed url to handle the alarm. (Heat extension).")
|
||||
_("A signed url to handle the alarm. (Heat extension)."),
|
||||
type=attributes.Schema.STRING
|
||||
),
|
||||
}
|
||||
|
||||
|
|
|
@ -67,9 +67,10 @@ class WaitCondition(heat_wc.HeatWaitCondition):
|
|||
|
||||
attributes_schema = {
|
||||
DATA: attributes.Schema(
|
||||
_('JSON serialized dict containing data associated with wait '
|
||||
_('JSON string containing data associated with wait '
|
||||
'condition signals sent to the handle.'),
|
||||
cache_mode=attributes.Schema.CACHE_NONE
|
||||
cache_mode=attributes.Schema.CACHE_NONE,
|
||||
type=attributes.Schema.STRING
|
||||
),
|
||||
}
|
||||
|
||||
|
|
|
@ -66,7 +66,8 @@ class ElasticIp(resource.Resource):
|
|||
ALLOCATION_ID: attributes.Schema(
|
||||
_('ID that AWS assigns to represent the allocation of the address '
|
||||
'for use with Amazon VPC. Returned only for VPC elastic IP '
|
||||
'addresses.')
|
||||
'addresses.'),
|
||||
type=attributes.Schema.STRING
|
||||
),
|
||||
}
|
||||
|
||||
|
|
|
@ -322,19 +322,24 @@ class Instance(resource.Resource):
|
|||
attributes_schema = {
|
||||
AVAILABILITY_ZONE_ATTR: attributes.Schema(
|
||||
_('The Availability Zone where the specified instance is '
|
||||
'launched.')
|
||||
'launched.'),
|
||||
type=attributes.Schema.STRING
|
||||
),
|
||||
PRIVATE_DNS_NAME: attributes.Schema(
|
||||
_('Private DNS name of the specified instance.')
|
||||
_('Private DNS name of the specified instance.'),
|
||||
type=attributes.Schema.STRING
|
||||
),
|
||||
PUBLIC_DNS_NAME: attributes.Schema(
|
||||
_('Public DNS name of the specified instance.')
|
||||
_('Public DNS name of the specified instance.'),
|
||||
type=attributes.Schema.STRING
|
||||
),
|
||||
PRIVATE_IP: attributes.Schema(
|
||||
_('Private IP address of the specified instance.')
|
||||
_('Private IP address of the specified instance.'),
|
||||
type=attributes.Schema.STRING
|
||||
),
|
||||
PUBLIC_IP: attributes.Schema(
|
||||
_('Public IP address of the specified instance.')
|
||||
_('Public IP address of the specified instance.'),
|
||||
type=attributes.Schema.STRING
|
||||
),
|
||||
}
|
||||
|
||||
|
|
|
@ -88,7 +88,8 @@ class NetworkInterface(resource.Resource):
|
|||
|
||||
attributes_schema = {
|
||||
PRIVATE_IP_ADDRESS: attributes.Schema(
|
||||
_('Private IP address of the network interface.')
|
||||
_('Private IP address of the network interface.'),
|
||||
type=attributes.Schema.STRING
|
||||
),
|
||||
}
|
||||
|
||||
|
|
|
@ -74,7 +74,8 @@ class Subnet(resource.Resource):
|
|||
|
||||
attributes_schema = {
|
||||
AVAILABILITY_ZONE: attributes.Schema(
|
||||
_('Availability Zone of the subnet.')
|
||||
_('Availability Zone of the subnet.'),
|
||||
type=attributes.Schema.STRING
|
||||
),
|
||||
}
|
||||
|
||||
|
|
|
@ -167,11 +167,13 @@ class AccessKey(resource.Resource):
|
|||
attributes_schema = {
|
||||
USER_NAME: attributes.Schema(
|
||||
_('Username associated with the AccessKey.'),
|
||||
cache_mode=attributes.Schema.CACHE_NONE
|
||||
cache_mode=attributes.Schema.CACHE_NONE,
|
||||
type=attributes.Schema.STRING
|
||||
),
|
||||
SECRET_ACCESS_KEY: attributes.Schema(
|
||||
_('Keypair secret key.'),
|
||||
cache_mode=attributes.Schema.CACHE_NONE
|
||||
cache_mode=attributes.Schema.CACHE_NONE,
|
||||
type=attributes.Schema.STRING
|
||||
),
|
||||
}
|
||||
|
||||
|
|
|
@ -420,21 +420,26 @@ class LoadBalancer(stack_resource.StackResource):
|
|||
attributes_schema = {
|
||||
CANONICAL_HOSTED_ZONE_NAME: attributes.Schema(
|
||||
_("The name of the hosted zone that is associated with the "
|
||||
"LoadBalancer.")
|
||||
"LoadBalancer."),
|
||||
type=attributes.Schema.STRING
|
||||
),
|
||||
CANONICAL_HOSTED_ZONE_NAME_ID: attributes.Schema(
|
||||
_("The ID of the hosted zone name that is associated with the "
|
||||
"LoadBalancer.")
|
||||
"LoadBalancer."),
|
||||
type=attributes.Schema.STRING
|
||||
),
|
||||
DNS_NAME: attributes.Schema(
|
||||
_("The DNS name for the LoadBalancer.")
|
||||
_("The DNS name for the LoadBalancer."),
|
||||
type=attributes.Schema.STRING
|
||||
),
|
||||
SOURCE_SECURITY_GROUP_GROUP_NAME: attributes.Schema(
|
||||
_("The security group that you can use as part of your inbound "
|
||||
"rules for your LoadBalancer's back-end instances.")
|
||||
"rules for your LoadBalancer's back-end instances."),
|
||||
type=attributes.Schema.STRING
|
||||
),
|
||||
SOURCE_SECURITY_GROUP_OWNER_ALIAS: attributes.Schema(
|
||||
_("Owner of the source security group.")
|
||||
_("Owner of the source security group."),
|
||||
type=attributes.Schema.STRING
|
||||
),
|
||||
}
|
||||
|
||||
|
|
|
@ -99,10 +99,12 @@ class S3Bucket(resource.Resource):
|
|||
|
||||
attributes_schema = {
|
||||
DOMAIN_NAME: attributes.Schema(
|
||||
_('The DNS name of the specified bucket.')
|
||||
_('The DNS name of the specified bucket.'),
|
||||
type=attributes.Schema.STRING
|
||||
),
|
||||
WEBSITE_URL: attributes.Schema(
|
||||
_('The website endpoint for the specified bucket.')
|
||||
_('The website endpoint for the specified bucket.'),
|
||||
type=attributes.Schema.STRING
|
||||
),
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue