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

outscale.OutboundRule

Explore with Pulumi AI

Create OutboundRule Resource

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

Constructor syntax

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

@overload
def OutboundRule(resource_name: str,
                 opts: Optional[ResourceOptions] = None,
                 flow: Optional[str] = None,
                 security_group_id: Optional[str] = None,
                 from_port_range: Optional[float] = None,
                 ip_protocol: Optional[str] = None,
                 ip_range: Optional[str] = None,
                 outbound_rule_id: Optional[str] = None,
                 rules: Optional[Sequence[OutboundRuleRuleArgs]] = None,
                 security_group_account_id_to_link: Optional[str] = None,
                 security_group_name_to_link: Optional[str] = None,
                 to_port_range: Optional[float] = None)
func NewOutboundRule(ctx *Context, name string, args OutboundRuleArgs, opts ...ResourceOption) (*OutboundRule, error)
public OutboundRule(string name, OutboundRuleArgs args, CustomResourceOptions? opts = null)
public OutboundRule(String name, OutboundRuleArgs args)
public OutboundRule(String name, OutboundRuleArgs args, CustomResourceOptions options)
type: outscale:OutboundRule
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 This property is required. OutboundRuleArgs
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 This property is required. OutboundRuleArgs
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 This property is required. OutboundRuleArgs
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 This property is required. OutboundRuleArgs
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. OutboundRuleArgs
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 outboundRuleResource = new Outscale.OutboundRule("outboundRuleResource", new()
{
    Flow = "string",
    SecurityGroupId = "string",
    FromPortRange = 0,
    IpProtocol = "string",
    IpRange = "string",
    OutboundRuleId = "string",
    Rules = new[]
    {
        new Outscale.Inputs.OutboundRuleRuleArgs
        {
            FromPortRange = 0,
            IpProtocol = "string",
            IpRanges = new[]
            {
                "string",
            },
            SecurityGroupsMembers = new[]
            {
                new Outscale.Inputs.OutboundRuleRuleSecurityGroupsMemberArgs
                {
                    AccountId = "string",
                    SecurityGroupId = "string",
                    SecurityGroupName = "string",
                },
            },
            ServiceIds = new[]
            {
                "string",
            },
            ToPortRange = 0,
        },
    },
    SecurityGroupAccountIdToLink = "string",
    SecurityGroupNameToLink = "string",
    ToPortRange = 0,
});
Copy
example, err := outscale.NewOutboundRule(ctx, "outboundRuleResource", &outscale.OutboundRuleArgs{
Flow: pulumi.String("string"),
SecurityGroupId: pulumi.String("string"),
FromPortRange: pulumi.Float64(0),
IpProtocol: pulumi.String("string"),
IpRange: pulumi.String("string"),
OutboundRuleId: pulumi.String("string"),
Rules: .OutboundRuleRuleArray{
&.OutboundRuleRuleArgs{
FromPortRange: pulumi.Float64(0),
IpProtocol: pulumi.String("string"),
IpRanges: pulumi.StringArray{
pulumi.String("string"),
},
SecurityGroupsMembers: .OutboundRuleRuleSecurityGroupsMemberArray{
&.OutboundRuleRuleSecurityGroupsMemberArgs{
AccountId: pulumi.String("string"),
SecurityGroupId: pulumi.String("string"),
SecurityGroupName: pulumi.String("string"),
},
},
ServiceIds: pulumi.StringArray{
pulumi.String("string"),
},
ToPortRange: pulumi.Float64(0),
},
},
SecurityGroupAccountIdToLink: pulumi.String("string"),
SecurityGroupNameToLink: pulumi.String("string"),
ToPortRange: pulumi.Float64(0),
})
Copy
var outboundRuleResource = new OutboundRule("outboundRuleResource", OutboundRuleArgs.builder()
    .flow("string")
    .securityGroupId("string")
    .fromPortRange(0)
    .ipProtocol("string")
    .ipRange("string")
    .outboundRuleId("string")
    .rules(OutboundRuleRuleArgs.builder()
        .fromPortRange(0)
        .ipProtocol("string")
        .ipRanges("string")
        .securityGroupsMembers(OutboundRuleRuleSecurityGroupsMemberArgs.builder()
            .accountId("string")
            .securityGroupId("string")
            .securityGroupName("string")
            .build())
        .serviceIds("string")
        .toPortRange(0)
        .build())
    .securityGroupAccountIdToLink("string")
    .securityGroupNameToLink("string")
    .toPortRange(0)
    .build());
Copy
outbound_rule_resource = outscale.OutboundRule("outboundRuleResource",
    flow="string",
    security_group_id="string",
    from_port_range=0,
    ip_protocol="string",
    ip_range="string",
    outbound_rule_id="string",
    rules=[{
        "from_port_range": 0,
        "ip_protocol": "string",
        "ip_ranges": ["string"],
        "security_groups_members": [{
            "account_id": "string",
            "security_group_id": "string",
            "security_group_name": "string",
        }],
        "service_ids": ["string"],
        "to_port_range": 0,
    }],
    security_group_account_id_to_link="string",
    security_group_name_to_link="string",
    to_port_range=0)
Copy
const outboundRuleResource = new outscale.OutboundRule("outboundRuleResource", {
    flow: "string",
    securityGroupId: "string",
    fromPortRange: 0,
    ipProtocol: "string",
    ipRange: "string",
    outboundRuleId: "string",
    rules: [{
        fromPortRange: 0,
        ipProtocol: "string",
        ipRanges: ["string"],
        securityGroupsMembers: [{
            accountId: "string",
            securityGroupId: "string",
            securityGroupName: "string",
        }],
        serviceIds: ["string"],
        toPortRange: 0,
    }],
    securityGroupAccountIdToLink: "string",
    securityGroupNameToLink: "string",
    toPortRange: 0,
});
Copy
type: outscale:OutboundRule
properties:
    flow: string
    fromPortRange: 0
    ipProtocol: string
    ipRange: string
    outboundRuleId: string
    rules:
        - fromPortRange: 0
          ipProtocol: string
          ipRanges:
            - string
          securityGroupsMembers:
            - accountId: string
              securityGroupId: string
              securityGroupName: string
          serviceIds:
            - string
          toPortRange: 0
    securityGroupAccountIdToLink: string
    securityGroupId: string
    securityGroupNameToLink: string
    toPortRange: 0
Copy

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

Flow This property is required. string
SecurityGroupId This property is required. string
FromPortRange double
IpProtocol string
IpRange string
OutboundRuleId string
Rules List<OutboundRuleRule>
SecurityGroupAccountIdToLink string
SecurityGroupNameToLink string
ToPortRange double
Flow This property is required. string
SecurityGroupId This property is required. string
FromPortRange float64
IpProtocol string
IpRange string
OutboundRuleId string
Rules []OutboundRuleRuleArgs
SecurityGroupAccountIdToLink string
SecurityGroupNameToLink string
ToPortRange float64
flow This property is required. String
securityGroupId This property is required. String
fromPortRange Double
ipProtocol String
ipRange String
outboundRuleId String
rules List<OutboundRuleRule>
securityGroupAccountIdToLink String
securityGroupNameToLink String
toPortRange Double
flow This property is required. string
securityGroupId This property is required. string
fromPortRange number
ipProtocol string
ipRange string
outboundRuleId string
rules OutboundRuleRule[]
securityGroupAccountIdToLink string
securityGroupNameToLink string
toPortRange number
flow This property is required. String
securityGroupId This property is required. String
fromPortRange Number
ipProtocol String
ipRange String
outboundRuleId String
rules List<Property Map>
securityGroupAccountIdToLink String
securityGroupNameToLink String
toPortRange Number

Outputs

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

Id string
The provider-assigned unique ID for this managed resource.
NetId string
RequestId string
SecurityGroupName string
Id string
The provider-assigned unique ID for this managed resource.
NetId string
RequestId string
SecurityGroupName string
id String
The provider-assigned unique ID for this managed resource.
netId String
requestId String
securityGroupName String
id string
The provider-assigned unique ID for this managed resource.
netId string
requestId string
securityGroupName string
id str
The provider-assigned unique ID for this managed resource.
net_id str
request_id str
security_group_name str
id String
The provider-assigned unique ID for this managed resource.
netId String
requestId String
securityGroupName String

Look up Existing OutboundRule Resource

Get an existing OutboundRule 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?: OutboundRuleState, opts?: CustomResourceOptions): OutboundRule
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        flow: Optional[str] = None,
        from_port_range: Optional[float] = None,
        ip_protocol: Optional[str] = None,
        ip_range: Optional[str] = None,
        net_id: Optional[str] = None,
        outbound_rule_id: Optional[str] = None,
        request_id: Optional[str] = None,
        rules: Optional[Sequence[OutboundRuleRuleArgs]] = None,
        security_group_account_id_to_link: Optional[str] = None,
        security_group_id: Optional[str] = None,
        security_group_name: Optional[str] = None,
        security_group_name_to_link: Optional[str] = None,
        to_port_range: Optional[float] = None) -> OutboundRule
func GetOutboundRule(ctx *Context, name string, id IDInput, state *OutboundRuleState, opts ...ResourceOption) (*OutboundRule, error)
public static OutboundRule Get(string name, Input<string> id, OutboundRuleState? state, CustomResourceOptions? opts = null)
public static OutboundRule get(String name, Output<String> id, OutboundRuleState state, CustomResourceOptions options)
resources:  _:    type: outscale:OutboundRule    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:

Supporting Types

OutboundRuleRule
, OutboundRuleRuleArgs

OutboundRuleRuleSecurityGroupsMember
, OutboundRuleRuleSecurityGroupsMemberArgs

Package Details

Repository
outscale outscale/terraform-provider-outscale
License
Notes
This Pulumi package is based on the outscale Terraform Provider.