vercel.ProjectRollingRelease
Explore with Pulumi AI
Resource for a Vercel project rolling release configuration.
Example Usage
Example coming soon!
Example coming soon!
Example coming soon!
Example coming soon!
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.vercel.Project;
import com.pulumi.vercel.ProjectArgs;
import com.pulumi.vercel.ProjectRollingRelease;
import com.pulumi.vercel.ProjectRollingReleaseArgs;
import com.pulumi.vercel.inputs.ProjectRollingReleaseStageArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var example = new Project("example", ProjectArgs.builder()
.name("example-project")
.skewProtection("12 hours")
.build());
var exampleProjectRollingRelease = new ProjectRollingRelease("exampleProjectRollingRelease", ProjectRollingReleaseArgs.builder()
.projectId(example.id())
.advancementType("manual-approval")
.stages(
ProjectRollingReleaseStageArgs.builder()
.target_percentage(20)
.build(),
ProjectRollingReleaseStageArgs.builder()
.target_percentage(50)
.build())
.build());
}
}
resources:
example:
type: vercel:Project
properties:
name: example-project
skewProtection: 12 hours
exampleProjectRollingRelease:
type: vercel:ProjectRollingRelease
name: example
properties:
projectId: ${example.id}
advancementType: manual-approval
stages:
- target_percentage: 20
- target_percentage: 50
Create ProjectRollingRelease Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new ProjectRollingRelease(name: string, args: ProjectRollingReleaseArgs, opts?: CustomResourceOptions);
@overload
def ProjectRollingRelease(resource_name: str,
args: ProjectRollingReleaseArgs,
opts: Optional[ResourceOptions] = None)
@overload
def ProjectRollingRelease(resource_name: str,
opts: Optional[ResourceOptions] = None,
advancement_type: Optional[str] = None,
project_id: Optional[str] = None,
stages: Optional[Sequence[ProjectRollingReleaseStageArgs]] = None,
team_id: Optional[str] = None)
func NewProjectRollingRelease(ctx *Context, name string, args ProjectRollingReleaseArgs, opts ...ResourceOption) (*ProjectRollingRelease, error)
public ProjectRollingRelease(string name, ProjectRollingReleaseArgs args, CustomResourceOptions? opts = null)
public ProjectRollingRelease(String name, ProjectRollingReleaseArgs args)
public ProjectRollingRelease(String name, ProjectRollingReleaseArgs args, CustomResourceOptions options)
type: vercel:ProjectRollingRelease
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 ProjectRollingReleaseArgs
- 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 ProjectRollingReleaseArgs
- 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 ProjectRollingReleaseArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ProjectRollingReleaseArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args ProjectRollingReleaseArgs
- 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 projectRollingReleaseResource = new Vercel.ProjectRollingRelease("projectRollingReleaseResource", new()
{
AdvancementType = "string",
ProjectId = "string",
Stages = new[]
{
new Vercel.Inputs.ProjectRollingReleaseStageArgs
{
TargetPercentage = 0,
Duration = 0,
},
},
TeamId = "string",
});
example, err := vercel.NewProjectRollingRelease(ctx, "projectRollingReleaseResource", &vercel.ProjectRollingReleaseArgs{
AdvancementType: pulumi.String("string"),
ProjectId: pulumi.String("string"),
Stages: vercel.ProjectRollingReleaseStageArray{
&vercel.ProjectRollingReleaseStageArgs{
TargetPercentage: pulumi.Int(0),
Duration: pulumi.Int(0),
},
},
TeamId: pulumi.String("string"),
})
var projectRollingReleaseResource = new ProjectRollingRelease("projectRollingReleaseResource", ProjectRollingReleaseArgs.builder()
.advancementType("string")
.projectId("string")
.stages(ProjectRollingReleaseStageArgs.builder()
.targetPercentage(0)
.duration(0)
.build())
.teamId("string")
.build());
project_rolling_release_resource = vercel.ProjectRollingRelease("projectRollingReleaseResource",
advancement_type="string",
project_id="string",
stages=[{
"target_percentage": 0,
"duration": 0,
}],
team_id="string")
const projectRollingReleaseResource = new vercel.ProjectRollingRelease("projectRollingReleaseResource", {
advancementType: "string",
projectId: "string",
stages: [{
targetPercentage: 0,
duration: 0,
}],
teamId: "string",
});
type: vercel:ProjectRollingRelease
properties:
advancementType: string
projectId: string
stages:
- duration: 0
targetPercentage: 0
teamId: string
ProjectRollingRelease 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 ProjectRollingRelease resource accepts the following input properties:
- Advancement
Type string - The type of advancement for the rolling release. Must be either 'automatic' or 'manual-approval'.
- Project
Id string - The ID of the project.
- Stages
List<Pulumiverse.
Vercel. Inputs. Project Rolling Release Stage> - The stages for the rolling release configuration. The last stage must have target_percentage = 100.
- Team
Id string - The ID of the Vercel team.
- Advancement
Type string - The type of advancement for the rolling release. Must be either 'automatic' or 'manual-approval'.
- Project
Id string - The ID of the project.
- Stages
[]Project
Rolling Release Stage Args - The stages for the rolling release configuration. The last stage must have target_percentage = 100.
- Team
Id string - The ID of the Vercel team.
- advancement
Type String - The type of advancement for the rolling release. Must be either 'automatic' or 'manual-approval'.
- project
Id String - The ID of the project.
- stages
List<Project
Rolling Release Stage> - The stages for the rolling release configuration. The last stage must have target_percentage = 100.
- team
Id String - The ID of the Vercel team.
- advancement
Type string - The type of advancement for the rolling release. Must be either 'automatic' or 'manual-approval'.
- project
Id string - The ID of the project.
- stages
Project
Rolling Release Stage[] - The stages for the rolling release configuration. The last stage must have target_percentage = 100.
- team
Id string - The ID of the Vercel team.
- advancement_
type str - The type of advancement for the rolling release. Must be either 'automatic' or 'manual-approval'.
- project_
id str - The ID of the project.
- stages
Sequence[Project
Rolling Release Stage Args] - The stages for the rolling release configuration. The last stage must have target_percentage = 100.
- team_
id str - The ID of the Vercel team.
- advancement
Type String - The type of advancement for the rolling release. Must be either 'automatic' or 'manual-approval'.
- project
Id String - The ID of the project.
- stages List<Property Map>
- The stages for the rolling release configuration. The last stage must have target_percentage = 100.
- team
Id String - The ID of the Vercel team.
Outputs
All input properties are implicitly available as output properties. Additionally, the ProjectRollingRelease 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 ProjectRollingRelease Resource
Get an existing ProjectRollingRelease 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?: ProjectRollingReleaseState, opts?: CustomResourceOptions): ProjectRollingRelease
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
advancement_type: Optional[str] = None,
project_id: Optional[str] = None,
stages: Optional[Sequence[ProjectRollingReleaseStageArgs]] = None,
team_id: Optional[str] = None) -> ProjectRollingRelease
func GetProjectRollingRelease(ctx *Context, name string, id IDInput, state *ProjectRollingReleaseState, opts ...ResourceOption) (*ProjectRollingRelease, error)
public static ProjectRollingRelease Get(string name, Input<string> id, ProjectRollingReleaseState? state, CustomResourceOptions? opts = null)
public static ProjectRollingRelease get(String name, Output<String> id, ProjectRollingReleaseState state, CustomResourceOptions options)
resources: _: type: vercel:ProjectRollingRelease 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.
- Advancement
Type string - The type of advancement for the rolling release. Must be either 'automatic' or 'manual-approval'.
- Project
Id string - The ID of the project.
- Stages
List<Pulumiverse.
Vercel. Inputs. Project Rolling Release Stage> - The stages for the rolling release configuration. The last stage must have target_percentage = 100.
- Team
Id string - The ID of the Vercel team.
- Advancement
Type string - The type of advancement for the rolling release. Must be either 'automatic' or 'manual-approval'.
- Project
Id string - The ID of the project.
- Stages
[]Project
Rolling Release Stage Args - The stages for the rolling release configuration. The last stage must have target_percentage = 100.
- Team
Id string - The ID of the Vercel team.
- advancement
Type String - The type of advancement for the rolling release. Must be either 'automatic' or 'manual-approval'.
- project
Id String - The ID of the project.
- stages
List<Project
Rolling Release Stage> - The stages for the rolling release configuration. The last stage must have target_percentage = 100.
- team
Id String - The ID of the Vercel team.
- advancement
Type string - The type of advancement for the rolling release. Must be either 'automatic' or 'manual-approval'.
- project
Id string - The ID of the project.
- stages
Project
Rolling Release Stage[] - The stages for the rolling release configuration. The last stage must have target_percentage = 100.
- team
Id string - The ID of the Vercel team.
- advancement_
type str - The type of advancement for the rolling release. Must be either 'automatic' or 'manual-approval'.
- project_
id str - The ID of the project.
- stages
Sequence[Project
Rolling Release Stage Args] - The stages for the rolling release configuration. The last stage must have target_percentage = 100.
- team_
id str - The ID of the Vercel team.
- advancement
Type String - The type of advancement for the rolling release. Must be either 'automatic' or 'manual-approval'.
- project
Id String - The ID of the project.
- stages List<Property Map>
- The stages for the rolling release configuration. The last stage must have target_percentage = 100.
- team
Id String - The ID of the Vercel team.
Supporting Types
ProjectRollingReleaseStage, ProjectRollingReleaseStageArgs
- Target
Percentage int - The percentage of traffic to route to this stage.
- Duration int
- The duration in minutes to wait before advancing to the next stage. Required for automatic advancement type.
- Target
Percentage int - The percentage of traffic to route to this stage.
- Duration int
- The duration in minutes to wait before advancing to the next stage. Required for automatic advancement type.
- target
Percentage Integer - The percentage of traffic to route to this stage.
- duration Integer
- The duration in minutes to wait before advancing to the next stage. Required for automatic advancement type.
- target
Percentage number - The percentage of traffic to route to this stage.
- duration number
- The duration in minutes to wait before advancing to the next stage. Required for automatic advancement type.
- target_
percentage int - The percentage of traffic to route to this stage.
- duration int
- The duration in minutes to wait before advancing to the next stage. Required for automatic advancement type.
- target
Percentage Number - The percentage of traffic to route to this stage.
- duration Number
- The duration in minutes to wait before advancing to the next stage. Required for automatic advancement type.
Package Details
- Repository
- vercel pulumiverse/pulumi-vercel
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
vercel
Terraform Provider.