1. Packages
  2. Heroku
  3. API Docs
  4. review
  5. AppConfig
Heroku v1.0.3 published on Friday, Apr 14, 2023 by pulumiverse - Marcel Arns

heroku.review.AppConfig

Explore with Pulumi AI

heroku logo
Heroku v1.0.3 published on Friday, Apr 14, 2023 by pulumiverse - Marcel Arns

    Create AppConfig Resource

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

    Constructor syntax

    new AppConfig(name: string, args: AppConfigArgs, opts?: CustomResourceOptions);
    @overload
    def AppConfig(resource_name: str,
                  args: AppConfigArgs,
                  opts: Optional[ResourceOptions] = None)
    
    @overload
    def AppConfig(resource_name: str,
                  opts: Optional[ResourceOptions] = None,
                  deploy_target: Optional[AppConfigDeployTargetArgs] = None,
                  org_repo: Optional[str] = None,
                  pipeline_id: Optional[str] = None,
                  automatic_review_apps: Optional[bool] = None,
                  base_name: Optional[str] = None,
                  destroy_stale_apps: Optional[bool] = None,
                  stale_days: Optional[int] = None,
                  wait_for_ci: Optional[bool] = None)
    func NewAppConfig(ctx *Context, name string, args AppConfigArgs, opts ...ResourceOption) (*AppConfig, error)
    public AppConfig(string name, AppConfigArgs args, CustomResourceOptions? opts = null)
    public AppConfig(String name, AppConfigArgs args)
    public AppConfig(String name, AppConfigArgs args, CustomResourceOptions options)
    
    type: heroku:review:AppConfig
    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 AppConfigArgs
    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 AppConfigArgs
    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 AppConfigArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args AppConfigArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args AppConfigArgs
    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 appConfigResource = new Heroku.Review.AppConfig("appConfigResource", new()
    {
        DeployTarget = new Heroku.Review.Inputs.AppConfigDeployTargetArgs
        {
            Id = "string",
            Type = "string",
        },
        OrgRepo = "string",
        PipelineId = "string",
        AutomaticReviewApps = false,
        BaseName = "string",
        DestroyStaleApps = false,
        StaleDays = 0,
        WaitForCi = false,
    });
    
    example, err := review.NewAppConfig(ctx, "appConfigResource", &review.AppConfigArgs{
    	DeployTarget: &review.AppConfigDeployTargetArgs{
    		Id:   pulumi.String("string"),
    		Type: pulumi.String("string"),
    	},
    	OrgRepo:             pulumi.String("string"),
    	PipelineId:          pulumi.String("string"),
    	AutomaticReviewApps: pulumi.Bool(false),
    	BaseName:            pulumi.String("string"),
    	DestroyStaleApps:    pulumi.Bool(false),
    	StaleDays:           pulumi.Int(0),
    	WaitForCi:           pulumi.Bool(false),
    })
    
    var appConfigResource = new AppConfig("appConfigResource", AppConfigArgs.builder()
        .deployTarget(AppConfigDeployTargetArgs.builder()
            .id("string")
            .type("string")
            .build())
        .orgRepo("string")
        .pipelineId("string")
        .automaticReviewApps(false)
        .baseName("string")
        .destroyStaleApps(false)
        .staleDays(0)
        .waitForCi(false)
        .build());
    
    app_config_resource = heroku.review.AppConfig("appConfigResource",
        deploy_target=heroku.review.AppConfigDeployTargetArgs(
            id="string",
            type="string",
        ),
        org_repo="string",
        pipeline_id="string",
        automatic_review_apps=False,
        base_name="string",
        destroy_stale_apps=False,
        stale_days=0,
        wait_for_ci=False)
    
    const appConfigResource = new heroku.review.AppConfig("appConfigResource", {
        deployTarget: {
            id: "string",
            type: "string",
        },
        orgRepo: "string",
        pipelineId: "string",
        automaticReviewApps: false,
        baseName: "string",
        destroyStaleApps: false,
        staleDays: 0,
        waitForCi: false,
    });
    
    type: heroku:review:AppConfig
    properties:
        automaticReviewApps: false
        baseName: string
        deployTarget:
            id: string
            type: string
        destroyStaleApps: false
        orgRepo: string
        pipelineId: string
        staleDays: 0
        waitForCi: false
    

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

    Outputs

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

    Id string
    The provider-assigned unique ID for this managed resource.
    RepoId int
    Id string
    The provider-assigned unique ID for this managed resource.
    RepoId int
    id String
    The provider-assigned unique ID for this managed resource.
    repoId Integer
    id string
    The provider-assigned unique ID for this managed resource.
    repoId number
    id str
    The provider-assigned unique ID for this managed resource.
    repo_id int
    id String
    The provider-assigned unique ID for this managed resource.
    repoId Number

    Look up Existing AppConfig Resource

    Get an existing AppConfig 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?: AppConfigState, opts?: CustomResourceOptions): AppConfig
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            automatic_review_apps: Optional[bool] = None,
            base_name: Optional[str] = None,
            deploy_target: Optional[AppConfigDeployTargetArgs] = None,
            destroy_stale_apps: Optional[bool] = None,
            org_repo: Optional[str] = None,
            pipeline_id: Optional[str] = None,
            repo_id: Optional[int] = None,
            stale_days: Optional[int] = None,
            wait_for_ci: Optional[bool] = None) -> AppConfig
    func GetAppConfig(ctx *Context, name string, id IDInput, state *AppConfigState, opts ...ResourceOption) (*AppConfig, error)
    public static AppConfig Get(string name, Input<string> id, AppConfigState? state, CustomResourceOptions? opts = null)
    public static AppConfig get(String name, Output<String> id, AppConfigState 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:

    Supporting Types

    AppConfigDeployTarget, AppConfigDeployTargetArgs

    Id string
    Type string
    Id string
    Type string
    id String
    type String
    id string
    type string
    id str
    type str
    id String
    type String

    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.3 published on Friday, Apr 14, 2023 by pulumiverse - Marcel Arns