Class: AWSCDK::GlobalAccelerator::CfnCrossAccountAttachment::ResourceProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
global_accelerator/cfn_cross_account_attachment.rb

Overview

A resource is one of the following: the ARN for an AWS resource that is supported by AWS Global Accelerator to be added as an endpoint, or a CIDR range that specifies a bring your own IP (BYOIP) address pool.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(cidr: nil, endpoint_id: nil, region: nil) ⇒ ResourceProperty

Returns a new instance of ResourceProperty.

Parameters:

  • cidr (String, nil) (defaults to: nil)

    An IP address range, in CIDR format, that is specified as resource.

  • endpoint_id (String, nil) (defaults to: nil)

    The endpoint ID for the endpoint that is specified as a AWS resource.

  • region (String, nil) (defaults to: nil)

    The AWS Region where a shared endpoint resource is located.



561
562
563
564
565
566
567
568
# File 'global_accelerator/cfn_cross_account_attachment.rb', line 561

def initialize(cidr: nil, endpoint_id: nil, region: nil)
  @cidr = cidr
  Jsii::Type.check_type(@cidr, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "cidr") unless @cidr.nil?
  @endpoint_id = endpoint_id
  Jsii::Type.check_type(@endpoint_id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "endpointId") unless @endpoint_id.nil?
  @region = region
  Jsii::Type.check_type(@region, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "region") unless @region.nil?
end

Instance Attribute Details

#cidrString? (readonly)

An IP address range, in CIDR format, that is specified as resource.

The address must be provisioned and advertised in AWS Global Accelerator by following the bring your own IP address (BYOIP) process for Global Accelerator

For more information, see Bring your own IP addresses (BYOIP) in the AWS Global Accelerator Developer Guide.



578
579
580
# File 'global_accelerator/cfn_cross_account_attachment.rb', line 578

def cidr
  @cidr
end

#endpoint_idString? (readonly)

The endpoint ID for the endpoint that is specified as a AWS resource.

An endpoint ID for the cross-account feature is the ARN of an AWS resource, such as a Network Load Balancer, that Global Accelerator supports as an endpoint for an accelerator.



585
586
587
# File 'global_accelerator/cfn_cross_account_attachment.rb', line 585

def endpoint_id
  @endpoint_id
end

#regionString? (readonly)

The AWS Region where a shared endpoint resource is located.



590
591
592
# File 'global_accelerator/cfn_cross_account_attachment.rb', line 590

def region
  @region
end

Class Method Details

.jsii_propertiesObject



592
593
594
595
596
597
598
# File 'global_accelerator/cfn_cross_account_attachment.rb', line 592

def self.jsii_properties
  {
    :cidr => "cidr",
    :endpoint_id => "endpointId",
    :region => "region",
  }
end

Instance Method Details

#to_jsiiObject



600
601
602
603
604
605
606
607
608
# File 'global_accelerator/cfn_cross_account_attachment.rb', line 600

def to_jsii
  result = {}
  result.merge!({
    "cidr" => @cidr,
    "endpointId" => @endpoint_id,
    "region" => @region,
  })
  result.compact
end