1. Packages
  2. Outscale Provider
  3. API Docs
  4. InternetService
outscale 1.1.0 published on Thursday, Apr 3, 2025 by outscale

outscale.InternetService

Explore with Pulumi AI

Manages an Internet service.

For more information on this resource, see the User Guide.
For more information on this resource actions, see the API documentation.

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as outscale from "@pulumi/outscale";

const internetService01 = new outscale.InternetService("internetService01", {});
Copy
import pulumi
import pulumi_outscale as outscale

internet_service01 = outscale.InternetService("internetService01")
Copy
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.NewInternetService(ctx, "internetService01", nil)
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Outscale = Pulumi.Outscale;

return await Deployment.RunAsync(() => 
{
    var internetService01 = new Outscale.InternetService("internetService01");

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
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 internetService01 = new InternetService("internetService01");

    }
}
Copy
resources:
  internetService01:
    type: outscale:InternetService
Copy

Create InternetService Resource

Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

Constructor syntax

new InternetService(name: string, args?: InternetServiceArgs, opts?: CustomResourceOptions);
@overload
def InternetService(resource_name: str,
                    args: Optional[InternetServiceArgs] = None,
                    opts: Optional[ResourceOptions] = None)

@overload
def InternetService(resource_name: str,
                    opts: Optional[ResourceOptions] = None,
                    outscale_internet_service_id: Optional[str] = None,
                    tags: Optional[Sequence[InternetServiceTagArgs]] = None)
func NewInternetService(ctx *Context, name string, args *InternetServiceArgs, opts ...ResourceOption) (*InternetService, error)
public InternetService(string name, InternetServiceArgs? args = null, CustomResourceOptions? opts = null)
public InternetService(String name, InternetServiceArgs args)
public InternetService(String name, InternetServiceArgs args, CustomResourceOptions options)
type: outscale:InternetService
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

Parameters

name This property is required. string
The unique name of the resource.
args InternetServiceArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args InternetServiceArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name This property is required. string
The unique name of the resource.
args InternetServiceArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args InternetServiceArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. InternetServiceArgs
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 internetServiceResource = new Outscale.InternetService("internetServiceResource", new()
{
    OutscaleInternetServiceId = "string",
    Tags = new[]
    {
        new Outscale.Inputs.InternetServiceTagArgs
        {
            Key = "string",
            Value = "string",
        },
    },
});
Copy
example, err := outscale.NewInternetService(ctx, "internetServiceResource", &outscale.InternetServiceArgs{
	OutscaleInternetServiceId: pulumi.String("string"),
	Tags: outscale.InternetServiceTagArray{
		&outscale.InternetServiceTagArgs{
			Key:   pulumi.String("string"),
			Value: pulumi.String("string"),
		},
	},
})
Copy
var internetServiceResource = new InternetService("internetServiceResource", InternetServiceArgs.builder()
    .outscaleInternetServiceId("string")
    .tags(InternetServiceTagArgs.builder()
        .key("string")
        .value("string")
        .build())
    .build());
Copy
internet_service_resource = outscale.InternetService("internetServiceResource",
    outscale_internet_service_id="string",
    tags=[{
        "key": "string",
        "value": "string",
    }])
Copy
const internetServiceResource = new outscale.InternetService("internetServiceResource", {
    outscaleInternetServiceId: "string",
    tags: [{
        key: "string",
        value: "string",
    }],
});
Copy
type: outscale:InternetService
properties:
    outscaleInternetServiceId: string
    tags:
        - key: string
          value: string
Copy

InternetService 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 InternetService resource accepts the following input properties:

OutscaleInternetServiceId string
Tags List<InternetServiceTag>
A tag to add to this resource. You can specify this argument several times.
OutscaleInternetServiceId string
Tags []InternetServiceTagArgs
A tag to add to this resource. You can specify this argument several times.
outscaleInternetServiceId String
tags List<InternetServiceTag>
A tag to add to this resource. You can specify this argument several times.
outscaleInternetServiceId string
tags InternetServiceTag[]
A tag to add to this resource. You can specify this argument several times.
outscale_internet_service_id str
tags Sequence[InternetServiceTagArgs]
A tag to add to this resource. You can specify this argument several times.
outscaleInternetServiceId String
tags List<Property Map>
A tag to add to this resource. You can specify this argument several times.

Outputs

All input properties are implicitly available as output properties. Additionally, the InternetService resource produces the following output properties:

Id string
The provider-assigned unique ID for this managed resource.
InternetServiceId string
The ID of the internet service.
NetId string
The ID of the Net attached to the internet service.
RequestId string
State string
The state of the attachment of the internet service to the Net (always available).
Id string
The provider-assigned unique ID for this managed resource.
InternetServiceId string
The ID of the internet service.
NetId string
The ID of the Net attached to the internet service.
RequestId string
State string
The state of the attachment of the internet service to the Net (always available).
id String
The provider-assigned unique ID for this managed resource.
internetServiceId String
The ID of the internet service.
netId String
The ID of the Net attached to the internet service.
requestId String
state String
The state of the attachment of the internet service to the Net (always available).
id string
The provider-assigned unique ID for this managed resource.
internetServiceId string
The ID of the internet service.
netId string
The ID of the Net attached to the internet service.
requestId string
state string
The state of the attachment of the internet service to the Net (always available).
id str
The provider-assigned unique ID for this managed resource.
internet_service_id str
The ID of the internet service.
net_id str
The ID of the Net attached to the internet service.
request_id str
state str
The state of the attachment of the internet service to the Net (always available).
id String
The provider-assigned unique ID for this managed resource.
internetServiceId String
The ID of the internet service.
netId String
The ID of the Net attached to the internet service.
requestId String
state String
The state of the attachment of the internet service to the Net (always available).

Look up Existing InternetService Resource

Get an existing InternetService 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?: InternetServiceState, opts?: CustomResourceOptions): InternetService
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        internet_service_id: Optional[str] = None,
        net_id: Optional[str] = None,
        outscale_internet_service_id: Optional[str] = None,
        request_id: Optional[str] = None,
        state: Optional[str] = None,
        tags: Optional[Sequence[InternetServiceTagArgs]] = None) -> InternetService
func GetInternetService(ctx *Context, name string, id IDInput, state *InternetServiceState, opts ...ResourceOption) (*InternetService, error)
public static InternetService Get(string name, Input<string> id, InternetServiceState? state, CustomResourceOptions? opts = null)
public static InternetService get(String name, Output<String> id, InternetServiceState state, CustomResourceOptions options)
resources:  _:    type: outscale:InternetService    get:      id: ${id}
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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.
The following state arguments are supported:
InternetServiceId string
The ID of the internet service.
NetId string
The ID of the Net attached to the internet service.
OutscaleInternetServiceId string
RequestId string
State string
The state of the attachment of the internet service to the Net (always available).
Tags List<InternetServiceTag>
A tag to add to this resource. You can specify this argument several times.
InternetServiceId string
The ID of the internet service.
NetId string
The ID of the Net attached to the internet service.
OutscaleInternetServiceId string
RequestId string
State string
The state of the attachment of the internet service to the Net (always available).
Tags []InternetServiceTagArgs
A tag to add to this resource. You can specify this argument several times.
internetServiceId String
The ID of the internet service.
netId String
The ID of the Net attached to the internet service.
outscaleInternetServiceId String
requestId String
state String
The state of the attachment of the internet service to the Net (always available).
tags List<InternetServiceTag>
A tag to add to this resource. You can specify this argument several times.
internetServiceId string
The ID of the internet service.
netId string
The ID of the Net attached to the internet service.
outscaleInternetServiceId string
requestId string
state string
The state of the attachment of the internet service to the Net (always available).
tags InternetServiceTag[]
A tag to add to this resource. You can specify this argument several times.
internet_service_id str
The ID of the internet service.
net_id str
The ID of the Net attached to the internet service.
outscale_internet_service_id str
request_id str
state str
The state of the attachment of the internet service to the Net (always available).
tags Sequence[InternetServiceTagArgs]
A tag to add to this resource. You can specify this argument several times.
internetServiceId String
The ID of the internet service.
netId String
The ID of the Net attached to the internet service.
outscaleInternetServiceId String
requestId String
state String
The state of the attachment of the internet service to the Net (always available).
tags List<Property Map>
A tag to add to this resource. You can specify this argument several times.

Supporting Types

InternetServiceTag
, InternetServiceTagArgs

Key string
The key of the tag, with a minimum of 1 character.
Value string
The value of the tag, between 0 and 255 characters.
Key string
The key of the tag, with a minimum of 1 character.
Value string
The value of the tag, between 0 and 255 characters.
key String
The key of the tag, with a minimum of 1 character.
value String
The value of the tag, between 0 and 255 characters.
key string
The key of the tag, with a minimum of 1 character.
value string
The value of the tag, between 0 and 255 characters.
key str
The key of the tag, with a minimum of 1 character.
value str
The value of the tag, between 0 and 255 characters.
key String
The key of the tag, with a minimum of 1 character.
value String
The value of the tag, between 0 and 255 characters.

Import

An internet service can be imported using its ID. For example:

console

$ pulumi import outscale:index/internetService:InternetService ImportedInternetService igw-12345678
Copy

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.