1. Packages
  2. Heroku Provider
  3. API Docs
  4. space
  5. InboundRuleset
Heroku v1.0.4 published on Tuesday, Apr 8, 2025 by pulumiverse - Marcel Arns

heroku.space.InboundRuleset

Explore with Pulumi AI

heroku logo
Heroku v1.0.4 published on Tuesday, Apr 8, 2025 by pulumiverse - Marcel Arns

    Provides a resource for managing inbound rulesets for Heroku Private Spaces.

    Example Usage

    # Create a new Heroku space
    resource "heroku_space" "default" {
      name         = "test-space"
      organization = "my-company"
      region       = "virginia"
    }
    
    # Allow all traffic EXCEPT 8.8.4.4 to access the HPS.
    resource "heroku_space_inbound_ruleset" "default" {
      space = heroku_space.default.id
    
      rule {
        action = "allow"
        source = "0.0.0.0/0"
      }
    
      rule {
        action = "deny"
        source = "8.8.4.4/32"
      }
    }
    

    Create InboundRuleset Resource

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

    Constructor syntax

    new InboundRuleset(name: string, args: InboundRulesetArgs, opts?: CustomResourceOptions);
    @overload
    def InboundRuleset(resource_name: str,
                       args: InboundRulesetArgs,
                       opts: Optional[ResourceOptions] = None)
    
    @overload
    def InboundRuleset(resource_name: str,
                       opts: Optional[ResourceOptions] = None,
                       rules: Optional[Sequence[InboundRulesetRuleArgs]] = None,
                       space: Optional[str] = None)
    func NewInboundRuleset(ctx *Context, name string, args InboundRulesetArgs, opts ...ResourceOption) (*InboundRuleset, error)
    public InboundRuleset(string name, InboundRulesetArgs args, CustomResourceOptions? opts = null)
    public InboundRuleset(String name, InboundRulesetArgs args)
    public InboundRuleset(String name, InboundRulesetArgs args, CustomResourceOptions options)
    
    type: heroku:space:InboundRuleset
    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 InboundRulesetArgs
    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 InboundRulesetArgs
    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 InboundRulesetArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args InboundRulesetArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args InboundRulesetArgs
    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 inboundRulesetResource = new Heroku.Space.InboundRuleset("inboundRulesetResource", new()
    {
        Rules = new[]
        {
            new Heroku.Space.Inputs.InboundRulesetRuleArgs
            {
                Action = "string",
                Source = "string",
            },
        },
        Space = "string",
    });
    
    example, err := space.NewInboundRuleset(ctx, "inboundRulesetResource", &space.InboundRulesetArgs{
    	Rules: space.InboundRulesetRuleArray{
    		&space.InboundRulesetRuleArgs{
    			Action: pulumi.String("string"),
    			Source: pulumi.String("string"),
    		},
    	},
    	Space: pulumi.String("string"),
    })
    
    var inboundRulesetResource = new InboundRuleset("inboundRulesetResource", InboundRulesetArgs.builder()
        .rules(InboundRulesetRuleArgs.builder()
            .action("string")
            .source("string")
            .build())
        .space("string")
        .build());
    
    inbound_ruleset_resource = heroku.space.InboundRuleset("inboundRulesetResource",
        rules=[{
            "action": "string",
            "source": "string",
        }],
        space="string")
    
    const inboundRulesetResource = new heroku.space.InboundRuleset("inboundRulesetResource", {
        rules: [{
            action: "string",
            source: "string",
        }],
        space: "string",
    });
    
    type: heroku:space:InboundRuleset
    properties:
        rules:
            - action: string
              source: string
        space: string
    

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

    Rules List<Pulumiverse.Heroku.Space.Inputs.InboundRulesetRule>
    At least one rule block. Rules are documented below.
    Space string
    The ID of the space.
    Rules []InboundRulesetRuleArgs
    At least one rule block. Rules are documented below.
    Space string
    The ID of the space.
    rules List<InboundRulesetRule>
    At least one rule block. Rules are documented below.
    space String
    The ID of the space.
    rules InboundRulesetRule[]
    At least one rule block. Rules are documented below.
    space string
    The ID of the space.
    rules Sequence[InboundRulesetRuleArgs]
    At least one rule block. Rules are documented below.
    space str
    The ID of the space.
    rules List<Property Map>
    At least one rule block. Rules are documented below.
    space String
    The ID of the space.

    Outputs

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

    Id string
    The provider-assigned unique ID for this managed resource.
    Id string
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.
    id string
    The provider-assigned unique ID for this managed resource.
    id str
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.

    Look up Existing InboundRuleset Resource

    Get an existing InboundRuleset 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?: InboundRulesetState, opts?: CustomResourceOptions): InboundRuleset
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            rules: Optional[Sequence[InboundRulesetRuleArgs]] = None,
            space: Optional[str] = None) -> InboundRuleset
    func GetInboundRuleset(ctx *Context, name string, id IDInput, state *InboundRulesetState, opts ...ResourceOption) (*InboundRuleset, error)
    public static InboundRuleset Get(string name, Input<string> id, InboundRulesetState? state, CustomResourceOptions? opts = null)
    public static InboundRuleset get(String name, Output<String> id, InboundRulesetState state, CustomResourceOptions options)
    resources:  _:    type: heroku:space:InboundRuleset    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.
    The following state arguments are supported:
    Rules List<Pulumiverse.Heroku.Space.Inputs.InboundRulesetRule>
    At least one rule block. Rules are documented below.
    Space string
    The ID of the space.
    Rules []InboundRulesetRuleArgs
    At least one rule block. Rules are documented below.
    Space string
    The ID of the space.
    rules List<InboundRulesetRule>
    At least one rule block. Rules are documented below.
    space String
    The ID of the space.
    rules InboundRulesetRule[]
    At least one rule block. Rules are documented below.
    space string
    The ID of the space.
    rules Sequence[InboundRulesetRuleArgs]
    At least one rule block. Rules are documented below.
    space str
    The ID of the space.
    rules List<Property Map>
    At least one rule block. Rules are documented below.
    space String
    The ID of the space.

    Supporting Types

    InboundRulesetRule, InboundRulesetRuleArgs

    Action string
    The action to apply this rule to. Must be one of allow or deny.
    Source string
    A CIDR block source for the rule.
    Action string
    The action to apply this rule to. Must be one of allow or deny.
    Source string
    A CIDR block source for the rule.
    action String
    The action to apply this rule to. Must be one of allow or deny.
    source String
    A CIDR block source for the rule.
    action string
    The action to apply this rule to. Must be one of allow or deny.
    source string
    A CIDR block source for the rule.
    action str
    The action to apply this rule to. Must be one of allow or deny.
    source str
    A CIDR block source for the rule.
    action String
    The action to apply this rule to. Must be one of allow or deny.
    source String
    A CIDR block source for the rule.

    Package Details

    Repository
    heroku pulumiverse/pulumi-heroku
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the heroku Terraform Provider.
    heroku logo
    Heroku v1.0.4 published on Tuesday, Apr 8, 2025 by pulumiverse - Marcel Arns