Sha256: 10f959bfe22217f5ea1d4deec0a1984d2be8febe110bc7eb4b4194273370fb5a

Contents?: true

Size: 1.82 KB

Versions: 34

Compression:

Stored size: 1.82 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(tgt = nil, &block)
            if tgt
              # Maintain backwards compatability
              alias_tgt tgt
            else
              # Add new resource_property functionality
              a = ResourceProperty::Route53AliasTarget.new(self)
              a.instance_exec(&block) if block
              properties['AliasTarget'].set(a)
            end
          end

          def geo_location(geo = nil, &block)
            if geo
              # Maintain backwards compatability
              geo_loc geo
            else
              # Add new resource_property functionality
              g = ResourceProperty::Route53GeoLocation.new(self)
              g.instance_exec(&block) if block
              properties['GeoLocation'].set(g)
            end
          end
        end
      end
    end
  end
end

Version data entries

34 entries across 34 versions & 1 rubygems

Version Path
convection-2.2.10 lib/convection/model/template/resource/aws_route53_recordset.rb
convection-2.2.9 lib/convection/model/template/resource/aws_route53_recordset.rb
convection-2.2.8 lib/convection/model/template/resource/aws_route53_recordset.rb
convection-2.2.7 lib/convection/model/template/resource/aws_route53_recordset.rb
convection-2.2.6 lib/convection/model/template/resource/aws_route53_recordset.rb
convection-2.2.5 lib/convection/model/template/resource/aws_route53_recordset.rb
convection-2.2.4 lib/convection/model/template/resource/aws_route53_recordset.rb
convection-2.2.3 lib/convection/model/template/resource/aws_route53_recordset.rb
convection-2.2.2 lib/convection/model/template/resource/aws_route53_recordset.rb
convection-2.2.1 lib/convection/model/template/resource/aws_route53_recordset.rb
convection-2.2.0 lib/convection/model/template/resource/aws_route53_recordset.rb
convection-2.1.2 lib/convection/model/template/resource/aws_route53_recordset.rb
convection-2.1.1 lib/convection/model/template/resource/aws_route53_recordset.rb
convection-2.1.0 lib/convection/model/template/resource/aws_route53_recordset.rb
convection-2.0.0 lib/convection/model/template/resource/aws_route53_recordset.rb
convection-1.1.7 lib/convection/model/template/resource/aws_route53_recordset.rb
convection-1.1.5 lib/convection/model/template/resource/aws_route53_recordset.rb
convection-1.1.4 lib/convection/model/template/resource/aws_route53_recordset.rb
convection-1.1.3 lib/convection/model/template/resource/aws_route53_recordset.rb
convection-1.1.2 lib/convection/model/template/resource/aws_route53_recordset.rb