Method: Aws::Drs::Client#create_source_network

Defined in:
lib/aws-sdk-drs/client.rb

#create_source_network(params = {}) ⇒ Types::CreateSourceNetworkResponse

Create a new Source Network resource for a provided VPC ID.

Examples:

Request syntax with placeholder values


resp = client.create_source_network({
  origin_account_id: "AccountID", # required
  origin_region: "AwsRegion", # required
  tags: {
    "TagKey" => "TagValue",
  },
  vpc_id: "VpcID", # required
})

Response structure


resp.source_network_id #=> String

Parameters:

  • params (Hash) (defaults to: {})

    ({})

Options Hash (params):

  • :origin_account_id (required, String)

    Account containing the VPC to protect.

  • :origin_region (required, String)

    Region containing the VPC to protect.

  • :tags (Hash<String,String>)

    A set of tags to be associated with the Source Network resource.

  • :vpc_id (required, String)

    Which VPC ID to protect.

Returns:

See Also:



876
877
878
879
# File 'lib/aws-sdk-drs/client.rb', line 876

def create_source_network(params = {}, options = {})
  req = build_request(:create_source_network, params)
  req.send_request(options)
end