outscale.InternetServiceLink
Explore with Pulumi AI
Manages an Internet service link.
For more information on this resource, see the User Guide.
For more information on this resource actions, see the API documentation.
Example Usage
Required resources
import * as pulumi from "@pulumi/pulumi";
import * as outscale from "@pulumi/outscale";
const net01 = new outscale.Net("net01", {ipRange: "10.0.0.0/18"});
const internetService01 = new outscale.InternetService("internetService01", {});
import pulumi
import pulumi_outscale as outscale
net01 = outscale.Net("net01", ip_range="10.0.0.0/18")
internet_service01 = outscale.InternetService("internetService01")
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/outscale/outscale"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := outscale.NewNet(ctx, "net01", &outscale.NetArgs{
IpRange: pulumi.String("10.0.0.0/18"),
})
if err != nil {
return err
}
_, err = outscale.NewInternetService(ctx, "internetService01", nil)
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Outscale = Pulumi.Outscale;
return await Deployment.RunAsync(() =>
{
var net01 = new Outscale.Net("net01", new()
{
IpRange = "10.0.0.0/18",
});
var internetService01 = new Outscale.InternetService("internetService01");
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.outscale.Net;
import com.pulumi.outscale.NetArgs;
import com.pulumi.outscale.InternetService;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var net01 = new Net("net01", NetArgs.builder()
.ipRange("10.0.0.0/18")
.build());
var internetService01 = new InternetService("internetService01");
}
}
resources:
net01:
type: outscale:Net
properties:
ipRange: 10.0.0.0/18
internetService01:
type: outscale:InternetService
Link an Internet service to a Net
import * as pulumi from "@pulumi/pulumi";
import * as outscale from "@pulumi/outscale";
const internetServiceLink01 = new outscale.InternetServiceLink("internetServiceLink01", {
internetServiceId: outscale_internet_service.internet_service01.internet_service_id,
netId: outscale_net.net01.net_id,
});
import pulumi
import pulumi_outscale as outscale
internet_service_link01 = outscale.InternetServiceLink("internetServiceLink01",
internet_service_id=outscale_internet_service["internet_service01"]["internet_service_id"],
net_id=outscale_net["net01"]["net_id"])
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/outscale/outscale"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := outscale.NewInternetServiceLink(ctx, "internetServiceLink01", &outscale.InternetServiceLinkArgs{
InternetServiceId: pulumi.Any(outscale_internet_service.Internet_service01.Internet_service_id),
NetId: pulumi.Any(outscale_net.Net01.Net_id),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Outscale = Pulumi.Outscale;
return await Deployment.RunAsync(() =>
{
var internetServiceLink01 = new Outscale.InternetServiceLink("internetServiceLink01", new()
{
InternetServiceId = outscale_internet_service.Internet_service01.Internet_service_id,
NetId = outscale_net.Net01.Net_id,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.outscale.InternetServiceLink;
import com.pulumi.outscale.InternetServiceLinkArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var internetServiceLink01 = new InternetServiceLink("internetServiceLink01", InternetServiceLinkArgs.builder()
.internetServiceId(outscale_internet_service.internet_service01().internet_service_id())
.netId(outscale_net.net01().net_id())
.build());
}
}
resources:
internetServiceLink01:
type: outscale:InternetServiceLink
properties:
internetServiceId: ${outscale_internet_service.internet_service01.internet_service_id}
netId: ${outscale_net.net01.net_id}
Create InternetServiceLink Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new InternetServiceLink(name: string, args: InternetServiceLinkArgs, opts?: CustomResourceOptions);
@overload
def InternetServiceLink(resource_name: str,
args: InternetServiceLinkArgs,
opts: Optional[ResourceOptions] = None)
@overload
def InternetServiceLink(resource_name: str,
opts: Optional[ResourceOptions] = None,
internet_service_id: Optional[str] = None,
net_id: Optional[str] = None,
timeouts: Optional[InternetServiceLinkTimeoutsArgs] = None)
func NewInternetServiceLink(ctx *Context, name string, args InternetServiceLinkArgs, opts ...ResourceOption) (*InternetServiceLink, error)
public InternetServiceLink(string name, InternetServiceLinkArgs args, CustomResourceOptions? opts = null)
public InternetServiceLink(String name, InternetServiceLinkArgs args)
public InternetServiceLink(String name, InternetServiceLinkArgs args, CustomResourceOptions options)
type: outscale:InternetServiceLink
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args InternetServiceLinkArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args InternetServiceLinkArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args InternetServiceLinkArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args InternetServiceLinkArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args InternetServiceLinkArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var internetServiceLinkResource = new Outscale.InternetServiceLink("internetServiceLinkResource", new()
{
InternetServiceId = "string",
NetId = "string",
Timeouts = new Outscale.Inputs.InternetServiceLinkTimeoutsArgs
{
Create = "string",
Delete = "string",
Read = "string",
Update = "string",
},
});
example, err := outscale.NewInternetServiceLink(ctx, "internetServiceLinkResource", &outscale.InternetServiceLinkArgs{
InternetServiceId: pulumi.String("string"),
NetId: pulumi.String("string"),
Timeouts: &outscale.InternetServiceLinkTimeoutsArgs{
Create: pulumi.String("string"),
Delete: pulumi.String("string"),
Read: pulumi.String("string"),
Update: pulumi.String("string"),
},
})
var internetServiceLinkResource = new InternetServiceLink("internetServiceLinkResource", InternetServiceLinkArgs.builder()
.internetServiceId("string")
.netId("string")
.timeouts(InternetServiceLinkTimeoutsArgs.builder()
.create("string")
.delete("string")
.read("string")
.update("string")
.build())
.build());
internet_service_link_resource = outscale.InternetServiceLink("internetServiceLinkResource",
internet_service_id="string",
net_id="string",
timeouts={
"create": "string",
"delete": "string",
"read": "string",
"update": "string",
})
const internetServiceLinkResource = new outscale.InternetServiceLink("internetServiceLinkResource", {
internetServiceId: "string",
netId: "string",
timeouts: {
create: "string",
"delete": "string",
read: "string",
update: "string",
},
});
type: outscale:InternetServiceLink
properties:
internetServiceId: string
netId: string
timeouts:
create: string
delete: string
read: string
update: string
InternetServiceLink Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The InternetServiceLink resource accepts the following input properties:
- Internet
Service stringId - The ID of the internet service you want to attach.
- Net
Id string - The ID of the Net to which you want to attach the internet service.
- Timeouts
Internet
Service Link Timeouts
- Internet
Service stringId - The ID of the internet service you want to attach.
- Net
Id string - The ID of the Net to which you want to attach the internet service.
- Timeouts
Internet
Service Link Timeouts Args
- internet
Service StringId - The ID of the internet service you want to attach.
- net
Id String - The ID of the Net to which you want to attach the internet service.
- timeouts
Internet
Service Link Timeouts
- internet
Service stringId - The ID of the internet service you want to attach.
- net
Id string - The ID of the Net to which you want to attach the internet service.
- timeouts
Internet
Service Link Timeouts
- internet_
service_ strid - The ID of the internet service you want to attach.
- net_
id str - The ID of the Net to which you want to attach the internet service.
- timeouts
Internet
Service Link Timeouts Args
- internet
Service StringId - The ID of the internet service you want to attach.
- net
Id String - The ID of the Net to which you want to attach the internet service.
- timeouts Property Map
Outputs
All input properties are implicitly available as output properties. Additionally, the InternetServiceLink resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Request
Id string - State string
- The state of the attachment of the Internet service to the Net (always
available
). - List<Internet
Service Link Tag> - One or more tags associated with the Internet service.
- Id string
- The provider-assigned unique ID for this managed resource.
- Request
Id string - State string
- The state of the attachment of the Internet service to the Net (always
available
). - []Internet
Service Link Tag - One or more tags associated with the Internet service.
- id String
- The provider-assigned unique ID for this managed resource.
- request
Id String - state String
- The state of the attachment of the Internet service to the Net (always
available
). - List<Internet
Service Link Tag> - One or more tags associated with the Internet service.
- id string
- The provider-assigned unique ID for this managed resource.
- request
Id string - state string
- The state of the attachment of the Internet service to the Net (always
available
). - Internet
Service Link Tag[] - One or more tags associated with the Internet service.
- id str
- The provider-assigned unique ID for this managed resource.
- request_
id str - state str
- The state of the attachment of the Internet service to the Net (always
available
). - Sequence[Internet
Service Link Tag] - One or more tags associated with the Internet service.
- id String
- The provider-assigned unique ID for this managed resource.
- request
Id String - state String
- The state of the attachment of the Internet service to the Net (always
available
). - List<Property Map>
- One or more tags associated with the Internet service.
Look up Existing InternetServiceLink Resource
Get an existing InternetServiceLink resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: InternetServiceLinkState, opts?: CustomResourceOptions): InternetServiceLink
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
internet_service_id: Optional[str] = None,
net_id: Optional[str] = None,
request_id: Optional[str] = None,
state: Optional[str] = None,
tags: Optional[Sequence[InternetServiceLinkTagArgs]] = None,
timeouts: Optional[InternetServiceLinkTimeoutsArgs] = None) -> InternetServiceLink
func GetInternetServiceLink(ctx *Context, name string, id IDInput, state *InternetServiceLinkState, opts ...ResourceOption) (*InternetServiceLink, error)
public static InternetServiceLink Get(string name, Input<string> id, InternetServiceLinkState? state, CustomResourceOptions? opts = null)
public static InternetServiceLink get(String name, Output<String> id, InternetServiceLinkState state, CustomResourceOptions options)
resources: _: type: outscale:InternetServiceLink get: id: ${id}
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Internet
Service stringId - The ID of the internet service you want to attach.
- Net
Id string - The ID of the Net to which you want to attach the internet service.
- Request
Id string - State string
- The state of the attachment of the Internet service to the Net (always
available
). - List<Internet
Service Link Tag> - One or more tags associated with the Internet service.
- Timeouts
Internet
Service Link Timeouts
- Internet
Service stringId - The ID of the internet service you want to attach.
- Net
Id string - The ID of the Net to which you want to attach the internet service.
- Request
Id string - State string
- The state of the attachment of the Internet service to the Net (always
available
). - []Internet
Service Link Tag Args - One or more tags associated with the Internet service.
- Timeouts
Internet
Service Link Timeouts Args
- internet
Service StringId - The ID of the internet service you want to attach.
- net
Id String - The ID of the Net to which you want to attach the internet service.
- request
Id String - state String
- The state of the attachment of the Internet service to the Net (always
available
). - List<Internet
Service Link Tag> - One or more tags associated with the Internet service.
- timeouts
Internet
Service Link Timeouts
- internet
Service stringId - The ID of the internet service you want to attach.
- net
Id string - The ID of the Net to which you want to attach the internet service.
- request
Id string - state string
- The state of the attachment of the Internet service to the Net (always
available
). - Internet
Service Link Tag[] - One or more tags associated with the Internet service.
- timeouts
Internet
Service Link Timeouts
- internet_
service_ strid - The ID of the internet service you want to attach.
- net_
id str - The ID of the Net to which you want to attach the internet service.
- request_
id str - state str
- The state of the attachment of the Internet service to the Net (always
available
). - Sequence[Internet
Service Link Tag Args] - One or more tags associated with the Internet service.
- timeouts
Internet
Service Link Timeouts Args
- internet
Service StringId - The ID of the internet service you want to attach.
- net
Id String - The ID of the Net to which you want to attach the internet service.
- request
Id String - state String
- The state of the attachment of the Internet service to the Net (always
available
). - List<Property Map>
- One or more tags associated with the Internet service.
- timeouts Property Map
Supporting Types
InternetServiceLinkTag, InternetServiceLinkTagArgs
InternetServiceLinkTimeouts, InternetServiceLinkTimeoutsArgs
- Create string
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
- Delete string
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Setting a timeout for a Delete operation is only applicable if changes are saved into state before the destroy operation occurs.
- Read string
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Read operations occur during any refresh or planning operation when refresh is enabled.
- Update string
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
- Create string
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
- Delete string
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Setting a timeout for a Delete operation is only applicable if changes are saved into state before the destroy operation occurs.
- Read string
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Read operations occur during any refresh or planning operation when refresh is enabled.
- Update string
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
- create String
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
- delete String
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Setting a timeout for a Delete operation is only applicable if changes are saved into state before the destroy operation occurs.
- read String
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Read operations occur during any refresh or planning operation when refresh is enabled.
- update String
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
- create string
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
- delete string
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Setting a timeout for a Delete operation is only applicable if changes are saved into state before the destroy operation occurs.
- read string
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Read operations occur during any refresh or planning operation when refresh is enabled.
- update string
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
- create str
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
- delete str
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Setting a timeout for a Delete operation is only applicable if changes are saved into state before the destroy operation occurs.
- read str
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Read operations occur during any refresh or planning operation when refresh is enabled.
- update str
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
- create String
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
- delete String
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Setting a timeout for a Delete operation is only applicable if changes are saved into state before the destroy operation occurs.
- read String
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Read operations occur during any refresh or planning operation when refresh is enabled.
- update String
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
Import
An internet service link can be imported using the internet service ID. For example:
console
$ pulumi import outscale:index/internetServiceLink:InternetServiceLink ImportedInternetServiceLink igw-87654321
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- outscale outscale/terraform-provider-outscale
- License
- Notes
- This Pulumi package is based on the
outscale
Terraform Provider.