heroku.app.Config
Explore with Pulumi AI
Create Config Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Config(name: string, args?: ConfigArgs, opts?: CustomResourceOptions);
@overload
def Config(resource_name: str,
args: Optional[ConfigArgs] = None,
opts: Optional[ResourceOptions] = None)
@overload
def Config(resource_name: str,
opts: Optional[ResourceOptions] = None,
sensitive_vars: Optional[Mapping[str, str]] = None,
vars: Optional[Mapping[str, str]] = None)
func NewConfig(ctx *Context, name string, args *ConfigArgs, opts ...ResourceOption) (*Config, error)
public Config(string name, ConfigArgs? args = null, CustomResourceOptions? opts = null)
public Config(String name, ConfigArgs args)
public Config(String name, ConfigArgs args, CustomResourceOptions options)
type: heroku:app:Config
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 ConfigArgs
- 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 ConfigArgs
- 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 ConfigArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ConfigArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args ConfigArgs
- 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 configResource = new Heroku.App.Config("configResource", new()
{
SensitiveVars =
{
{ "string", "string" },
},
Vars =
{
{ "string", "string" },
},
});
example, err := app.NewConfig(ctx, "configResource", &app.ConfigArgs{
SensitiveVars: pulumi.StringMap{
"string": pulumi.String("string"),
},
Vars: pulumi.StringMap{
"string": pulumi.String("string"),
},
})
var configResource = new Config("configResource", ConfigArgs.builder()
.sensitiveVars(Map.of("string", "string"))
.vars(Map.of("string", "string"))
.build());
config_resource = heroku.app.Config("configResource",
sensitive_vars={
"string": "string",
},
vars={
"string": "string",
})
const configResource = new heroku.app.Config("configResource", {
sensitiveVars: {
string: "string",
},
vars: {
string: "string",
},
});
type: heroku:app:Config
properties:
sensitiveVars:
string: string
vars:
string: string
Config 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 Config resource accepts the following input properties:
- Sensitive
Vars Dictionary<string, string> - Vars Dictionary<string, string>
- Sensitive
Vars map[string]string - Vars map[string]string
- sensitive
Vars Map<String,String> - vars Map<String,String>
- sensitive
Vars {[key: string]: string} - vars {[key: string]: string}
- sensitive_
vars Mapping[str, str] - vars Mapping[str, str]
- sensitive
Vars Map<String> - vars Map<String>
Outputs
All input properties are implicitly available as output properties. Additionally, the Config 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 Config Resource
Get an existing Config 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?: ConfigState, opts?: CustomResourceOptions): Config
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
sensitive_vars: Optional[Mapping[str, str]] = None,
vars: Optional[Mapping[str, str]] = None) -> Config
func GetConfig(ctx *Context, name string, id IDInput, state *ConfigState, opts ...ResourceOption) (*Config, error)
public static Config Get(string name, Input<string> id, ConfigState? state, CustomResourceOptions? opts = null)
public static Config get(String name, Output<String> id, ConfigState 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.
- Sensitive
Vars Dictionary<string, string> - Vars Dictionary<string, string>
- Sensitive
Vars map[string]string - Vars map[string]string
- sensitive
Vars Map<String,String> - vars Map<String,String>
- sensitive
Vars {[key: string]: string} - vars {[key: string]: string}
- sensitive_
vars Mapping[str, str] - vars Mapping[str, str]
- sensitive
Vars Map<String> - vars Map<String>
Package Details
- Repository
- heroku pulumiverse/pulumi-heroku
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
heroku
Terraform Provider.