Sha256: f89092676adf05096a3393471e73c1cef5b9c469c5c648ad3bd2394bdf2ab51d

Contents?: true

Size: 1.43 KB

Versions: 1

Compression:

Stored size: 1.43 KB

Contents

require_relative '../resource'

module Convection
  module Model
    class Template
      class Resource
        ##
        # AWS::EC2::Instance
        ##
        class Route53RecordSet < Resource
          type 'AWS::Route53::RecordSet', :route53_recordset
          property :alias_tgt, 'AliasTarget'
          property :comment, 'Comment'
          property :failover, 'Failover'
          property :geo_loc, 'GeoLocation'
          property :health_check_id, 'HealthCheckId'
          property :hosted_zone_id, 'HostedZoneId'
          alias zone hosted_zone_id # for backward compatability
          property :hosted_zone_name, 'HostedZoneName'
          alias zone_name hosted_zone_name # for backward compatability
          property :record_name, 'Name'
          property :region, 'Region'
          property :record, 'ResourceRecords', :array
          property :set_identifier, 'SetIdentifier'
          property :ttl, 'TTL'
          property :record_type, 'Type'
          property :weight, 'Weight'

          def alias_target(&block)
            a = ResourceProperty::Route53AliasTarget.new(self)
            a.instance_exec(&block) if block
            properties['AliasTarget'].set(a)
          end

          def geo_location(&block)
            g = ResourceProperty::Route53GeoLocation.new(self)
            g.instance_exec(&block) if block
            properties['GeoLocation'].set(g)
          end
        end
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
convection-1.0.0.pre.beta.4 lib/convection/model/template/resource/aws_route53_recordset.rb