heroku.app.App
Explore with Pulumi AI
Create App Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new App(name: string, args: AppArgs, opts?: CustomResourceOptions);
@overload
def App(resource_name: str,
args: AppArgs,
opts: Optional[ResourceOptions] = None)
@overload
def App(resource_name: str,
opts: Optional[ResourceOptions] = None,
region: Optional[str] = None,
acm: Optional[bool] = None,
buildpacks: Optional[Sequence[str]] = None,
config_vars: Optional[Mapping[str, Any]] = None,
internal_routing: Optional[bool] = None,
name: Optional[str] = None,
organization: Optional[AppOrganizationArgs] = None,
sensitive_config_vars: Optional[Mapping[str, str]] = None,
space: Optional[str] = None,
stack: Optional[str] = None)
func NewApp(ctx *Context, name string, args AppArgs, opts ...ResourceOption) (*App, error)
public App(string name, AppArgs args, CustomResourceOptions? opts = null)
type: heroku:app:App
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 AppArgs
- 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 AppArgs
- 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 AppArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args AppArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args AppArgs
- 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 appResource = new Heroku.App.App("appResource", new()
{
Region = "string",
Acm = false,
Buildpacks = new[]
{
"string",
},
ConfigVars =
{
{ "string", "any" },
},
InternalRouting = false,
Name = "string",
Organization = new Heroku.App.Inputs.AppOrganizationArgs
{
Name = "string",
Locked = false,
Personal = false,
},
SensitiveConfigVars =
{
{ "string", "string" },
},
Space = "string",
Stack = "string",
});
example, err := app.NewApp(ctx, "appResource", &app.AppArgs{
Region: pulumi.String("string"),
Acm: pulumi.Bool(false),
Buildpacks: pulumi.StringArray{
pulumi.String("string"),
},
ConfigVars: pulumi.Map{
"string": pulumi.Any("any"),
},
InternalRouting: pulumi.Bool(false),
Name: pulumi.String("string"),
Organization: &app.AppOrganizationArgs{
Name: pulumi.String("string"),
Locked: pulumi.Bool(false),
Personal: pulumi.Bool(false),
},
SensitiveConfigVars: pulumi.StringMap{
"string": pulumi.String("string"),
},
Space: pulumi.String("string"),
Stack: pulumi.String("string"),
})
var appResource = new App("appResource", AppArgs.builder()
.region("string")
.acm(false)
.buildpacks("string")
.configVars(Map.of("string", "any"))
.internalRouting(false)
.name("string")
.organization(AppOrganizationArgs.builder()
.name("string")
.locked(false)
.personal(false)
.build())
.sensitiveConfigVars(Map.of("string", "string"))
.space("string")
.stack("string")
.build());
app_resource = heroku.app.App("appResource",
region="string",
acm=False,
buildpacks=["string"],
config_vars={
"string": "any",
},
internal_routing=False,
name="string",
organization={
"name": "string",
"locked": False,
"personal": False,
},
sensitive_config_vars={
"string": "string",
},
space="string",
stack="string")
const appResource = new heroku.app.App("appResource", {
region: "string",
acm: false,
buildpacks: ["string"],
configVars: {
string: "any",
},
internalRouting: false,
name: "string",
organization: {
name: "string",
locked: false,
personal: false,
},
sensitiveConfigVars: {
string: "string",
},
space: "string",
stack: "string",
});
type: heroku:app:App
properties:
acm: false
buildpacks:
- string
configVars:
string: any
internalRouting: false
name: string
organization:
locked: false
name: string
personal: false
region: string
sensitiveConfigVars:
string: string
space: string
stack: string
App 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 App resource accepts the following input properties:
- Region string
- Acm bool
- Buildpacks List<string>
- Config
Vars Dictionary<string, object> - Internal
Routing bool - Name string
- Organization
Pulumiverse.
Heroku. App. Inputs. App Organization - Sensitive
Config Dictionary<string, string>Vars - Space string
- Stack string
- Region string
- Acm bool
- Buildpacks []string
- Config
Vars map[string]interface{} - Internal
Routing bool - Name string
- Organization
App
Organization Args - Sensitive
Config map[string]stringVars - Space string
- Stack string
- region String
- acm Boolean
- buildpacks List<String>
- config
Vars Map<String,Object> - internal
Routing Boolean - name String
- organization
App
Organization - sensitive
Config Map<String,String>Vars - space String
- stack String
- region string
- acm boolean
- buildpacks string[]
- config
Vars {[key: string]: any} - internal
Routing boolean - name string
- organization
App
Organization - sensitive
Config {[key: string]: string}Vars - space string
- stack string
- region str
- acm bool
- buildpacks Sequence[str]
- config_
vars Mapping[str, Any] - internal_
routing bool - name str
- organization
App
Organization Args - sensitive_
config_ Mapping[str, str]vars - space str
- stack str
- region String
- acm Boolean
- buildpacks List<String>
- config
Vars Map<Any> - internal
Routing Boolean - name String
- organization Property Map
- sensitive
Config Map<String>Vars - space String
- stack String
Outputs
All input properties are implicitly available as output properties. Additionally, the App resource produces the following output properties:
- All
Config Dictionary<string, object>Vars - Git
Url string - Heroku
Hostname string - Id string
- The provider-assigned unique ID for this managed resource.
- Uuid string
- Web
Url string
- All
Config map[string]interface{}Vars - Git
Url string - Heroku
Hostname string - Id string
- The provider-assigned unique ID for this managed resource.
- Uuid string
- Web
Url string
- all
Config Map<String,Object>Vars - git
Url String - heroku
Hostname String - id String
- The provider-assigned unique ID for this managed resource.
- uuid String
- web
Url String
- all
Config {[key: string]: any}Vars - git
Url string - heroku
Hostname string - id string
- The provider-assigned unique ID for this managed resource.
- uuid string
- web
Url string
- all_
config_ Mapping[str, Any]vars - git_
url str - heroku_
hostname str - id str
- The provider-assigned unique ID for this managed resource.
- uuid str
- web_
url str
- all
Config Map<Any>Vars - git
Url String - heroku
Hostname String - id String
- The provider-assigned unique ID for this managed resource.
- uuid String
- web
Url String
Look up Existing App Resource
Get an existing App 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?: AppState, opts?: CustomResourceOptions): App
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
acm: Optional[bool] = None,
all_config_vars: Optional[Mapping[str, Any]] = None,
buildpacks: Optional[Sequence[str]] = None,
config_vars: Optional[Mapping[str, Any]] = None,
git_url: Optional[str] = None,
heroku_hostname: Optional[str] = None,
internal_routing: Optional[bool] = None,
name: Optional[str] = None,
organization: Optional[AppOrganizationArgs] = None,
region: Optional[str] = None,
sensitive_config_vars: Optional[Mapping[str, str]] = None,
space: Optional[str] = None,
stack: Optional[str] = None,
uuid: Optional[str] = None,
web_url: Optional[str] = None) -> App
func GetApp(ctx *Context, name string, id IDInput, state *AppState, opts ...ResourceOption) (*App, error)
public static App Get(string name, Input<string> id, AppState? state, CustomResourceOptions? opts = null)
public static App get(String name, Output<String> id, AppState state, CustomResourceOptions options)
resources: _: type: heroku:app:App 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.
- Acm bool
- All
Config Dictionary<string, object>Vars - Buildpacks List<string>
- Config
Vars Dictionary<string, object> - Git
Url string - Heroku
Hostname string - Internal
Routing bool - Name string
- Organization
Pulumiverse.
Heroku. App. Inputs. App Organization - Region string
- Sensitive
Config Dictionary<string, string>Vars - Space string
- Stack string
- Uuid string
- Web
Url string
- Acm bool
- All
Config map[string]interface{}Vars - Buildpacks []string
- Config
Vars map[string]interface{} - Git
Url string - Heroku
Hostname string - Internal
Routing bool - Name string
- Organization
App
Organization Args - Region string
- Sensitive
Config map[string]stringVars - Space string
- Stack string
- Uuid string
- Web
Url string
- acm Boolean
- all
Config Map<String,Object>Vars - buildpacks List<String>
- config
Vars Map<String,Object> - git
Url String - heroku
Hostname String - internal
Routing Boolean - name String
- organization
App
Organization - region String
- sensitive
Config Map<String,String>Vars - space String
- stack String
- uuid String
- web
Url String
- acm boolean
- all
Config {[key: string]: any}Vars - buildpacks string[]
- config
Vars {[key: string]: any} - git
Url string - heroku
Hostname string - internal
Routing boolean - name string
- organization
App
Organization - region string
- sensitive
Config {[key: string]: string}Vars - space string
- stack string
- uuid string
- web
Url string
- acm bool
- all_
config_ Mapping[str, Any]vars - buildpacks Sequence[str]
- config_
vars Mapping[str, Any] - git_
url str - heroku_
hostname str - internal_
routing bool - name str
- organization
App
Organization Args - region str
- sensitive_
config_ Mapping[str, str]vars - space str
- stack str
- uuid str
- web_
url str
- acm Boolean
- all
Config Map<Any>Vars - buildpacks List<String>
- config
Vars Map<Any> - git
Url String - heroku
Hostname String - internal
Routing Boolean - name String
- organization Property Map
- region String
- sensitive
Config Map<String>Vars - space String
- stack String
- uuid String
- web
Url String
Supporting Types
AppOrganization, AppOrganizationArgs
Package Details
- Repository
- heroku pulumiverse/pulumi-heroku
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
heroku
Terraform Provider.