1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. Core
  5. DefaultRouteTable
Oracle Cloud Infrastructure v2.3.0 published on Wednesday, Jul 17, 2024 by Pulumi

oci.Core.DefaultRouteTable

Explore with Pulumi AI

oci logo
Oracle Cloud Infrastructure v2.3.0 published on Wednesday, Jul 17, 2024 by Pulumi

    Create DefaultRouteTable Resource

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

    Constructor syntax

    new DefaultRouteTable(name: string, args: DefaultRouteTableArgs, opts?: CustomResourceOptions);
    @overload
    def DefaultRouteTable(resource_name: str,
                          args: DefaultRouteTableArgs,
                          opts: Optional[ResourceOptions] = None)
    
    @overload
    def DefaultRouteTable(resource_name: str,
                          opts: Optional[ResourceOptions] = None,
                          manage_default_resource_id: Optional[str] = None,
                          compartment_id: Optional[str] = None,
                          defined_tags: Optional[Mapping[str, Any]] = None,
                          display_name: Optional[str] = None,
                          freeform_tags: Optional[Mapping[str, Any]] = None,
                          route_rules: Optional[Sequence[_core.DefaultRouteTableRouteRuleArgs]] = None)
    func NewDefaultRouteTable(ctx *Context, name string, args DefaultRouteTableArgs, opts ...ResourceOption) (*DefaultRouteTable, error)
    public DefaultRouteTable(string name, DefaultRouteTableArgs args, CustomResourceOptions? opts = null)
    public DefaultRouteTable(String name, DefaultRouteTableArgs args)
    public DefaultRouteTable(String name, DefaultRouteTableArgs args, CustomResourceOptions options)
    
    type: oci:Core:DefaultRouteTable
    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 DefaultRouteTableArgs
    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 DefaultRouteTableArgs
    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 DefaultRouteTableArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args DefaultRouteTableArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args DefaultRouteTableArgs
    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 defaultRouteTableResource = new Oci.Core.DefaultRouteTable("defaultRouteTableResource", new()
    {
        ManageDefaultResourceId = "string",
        CompartmentId = "string",
        DefinedTags = 
        {
            { "string", "any" },
        },
        DisplayName = "string",
        FreeformTags = 
        {
            { "string", "any" },
        },
        RouteRules = new[]
        {
            new Oci.Core.Inputs.DefaultRouteTableRouteRuleArgs
            {
                NetworkEntityId = "string",
                Description = "string",
                Destination = "string",
                DestinationType = "string",
                RouteType = "string",
            },
        },
    });
    
    example, err := Core.NewDefaultRouteTable(ctx, "defaultRouteTableResource", &Core.DefaultRouteTableArgs{
    	ManageDefaultResourceId: pulumi.String("string"),
    	CompartmentId:           pulumi.String("string"),
    	DefinedTags: pulumi.Map{
    		"string": pulumi.Any("any"),
    	},
    	DisplayName: pulumi.String("string"),
    	FreeformTags: pulumi.Map{
    		"string": pulumi.Any("any"),
    	},
    	RouteRules: core.DefaultRouteTableRouteRuleArray{
    		&core.DefaultRouteTableRouteRuleArgs{
    			NetworkEntityId: pulumi.String("string"),
    			Description:     pulumi.String("string"),
    			Destination:     pulumi.String("string"),
    			DestinationType: pulumi.String("string"),
    			RouteType:       pulumi.String("string"),
    		},
    	},
    })
    
    var defaultRouteTableResource = new DefaultRouteTable("defaultRouteTableResource", DefaultRouteTableArgs.builder()
        .manageDefaultResourceId("string")
        .compartmentId("string")
        .definedTags(Map.of("string", "any"))
        .displayName("string")
        .freeformTags(Map.of("string", "any"))
        .routeRules(DefaultRouteTableRouteRuleArgs.builder()
            .networkEntityId("string")
            .description("string")
            .destination("string")
            .destinationType("string")
            .routeType("string")
            .build())
        .build());
    
    default_route_table_resource = oci.core.DefaultRouteTable("defaultRouteTableResource",
        manage_default_resource_id="string",
        compartment_id="string",
        defined_tags={
            "string": "any",
        },
        display_name="string",
        freeform_tags={
            "string": "any",
        },
        route_rules=[oci.core.DefaultRouteTableRouteRuleArgs(
            network_entity_id="string",
            description="string",
            destination="string",
            destination_type="string",
            route_type="string",
        )])
    
    const defaultRouteTableResource = new oci.core.DefaultRouteTable("defaultRouteTableResource", {
        manageDefaultResourceId: "string",
        compartmentId: "string",
        definedTags: {
            string: "any",
        },
        displayName: "string",
        freeformTags: {
            string: "any",
        },
        routeRules: [{
            networkEntityId: "string",
            description: "string",
            destination: "string",
            destinationType: "string",
            routeType: "string",
        }],
    });
    
    type: oci:Core:DefaultRouteTable
    properties:
        compartmentId: string
        definedTags:
            string: any
        displayName: string
        freeformTags:
            string: any
        manageDefaultResourceId: string
        routeRules:
            - description: string
              destination: string
              destinationType: string
              networkEntityId: string
              routeType: string
    

    DefaultRouteTable Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    The DefaultRouteTable resource accepts the following input properties:

    ManageDefaultResourceId string
    CompartmentId string
    DefinedTags Dictionary<string, object>
    DisplayName string
    FreeformTags Dictionary<string, object>
    RouteRules List<DefaultRouteTableRouteRule>

    Outputs

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

    Id string
    The provider-assigned unique ID for this managed resource.
    State string
    TimeCreated string
    Id string
    The provider-assigned unique ID for this managed resource.
    State string
    TimeCreated string
    id String
    The provider-assigned unique ID for this managed resource.
    state String
    timeCreated String
    id string
    The provider-assigned unique ID for this managed resource.
    state string
    timeCreated string
    id str
    The provider-assigned unique ID for this managed resource.
    state str
    time_created str
    id String
    The provider-assigned unique ID for this managed resource.
    state String
    timeCreated String

    Look up Existing DefaultRouteTable Resource

    Get an existing DefaultRouteTable 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?: DefaultRouteTableState, opts?: CustomResourceOptions): DefaultRouteTable
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            compartment_id: Optional[str] = None,
            defined_tags: Optional[Mapping[str, Any]] = None,
            display_name: Optional[str] = None,
            freeform_tags: Optional[Mapping[str, Any]] = None,
            manage_default_resource_id: Optional[str] = None,
            route_rules: Optional[Sequence[_core.DefaultRouteTableRouteRuleArgs]] = None,
            state: Optional[str] = None,
            time_created: Optional[str] = None) -> DefaultRouteTable
    func GetDefaultRouteTable(ctx *Context, name string, id IDInput, state *DefaultRouteTableState, opts ...ResourceOption) (*DefaultRouteTable, error)
    public static DefaultRouteTable Get(string name, Input<string> id, DefaultRouteTableState? state, CustomResourceOptions? opts = null)
    public static DefaultRouteTable get(String name, Output<String> id, DefaultRouteTableState state, CustomResourceOptions options)
    Resource lookup is not supported in YAML
    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.
    The following state arguments are supported:
    CompartmentId string
    DefinedTags Dictionary<string, object>
    DisplayName string
    FreeformTags Dictionary<string, object>
    ManageDefaultResourceId string
    RouteRules List<DefaultRouteTableRouteRule>
    State string
    TimeCreated string

    Supporting Types

    DefaultRouteTableRouteRule, DefaultRouteTableRouteRuleArgs

    NetworkEntityId string
    CidrBlock string

    Deprecated: The 'cidr_block' field has been deprecated. Please use 'destination' instead.

    Description string
    Destination string
    DestinationType string
    RouteType string
    NetworkEntityId string
    CidrBlock string

    Deprecated: The 'cidr_block' field has been deprecated. Please use 'destination' instead.

    Description string
    Destination string
    DestinationType string
    RouteType string
    networkEntityId String
    cidrBlock String

    Deprecated: The 'cidr_block' field has been deprecated. Please use 'destination' instead.

    description String
    destination String
    destinationType String
    routeType String
    networkEntityId string
    cidrBlock string

    Deprecated: The 'cidr_block' field has been deprecated. Please use 'destination' instead.

    description string
    destination string
    destinationType string
    routeType string
    network_entity_id str
    cidr_block str

    Deprecated: The 'cidr_block' field has been deprecated. Please use 'destination' instead.

    description str
    destination str
    destination_type str
    route_type str
    networkEntityId String
    cidrBlock String

    Deprecated: The 'cidr_block' field has been deprecated. Please use 'destination' instead.

    description String
    destination String
    destinationType String
    routeType String

    Package Details

    Repository
    oci pulumi/pulumi-oci
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the oci Terraform Provider.
    oci logo
    Oracle Cloud Infrastructure v2.3.0 published on Wednesday, Jul 17, 2024 by Pulumi