vercel.ProjectDeploymentRetention
Explore with Pulumi AI
Create ProjectDeploymentRetention Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new ProjectDeploymentRetention(name: string, args: ProjectDeploymentRetentionArgs, opts?: CustomResourceOptions);
@overload
def ProjectDeploymentRetention(resource_name: str,
args: ProjectDeploymentRetentionArgs,
opts: Optional[ResourceOptions] = None)
@overload
def ProjectDeploymentRetention(resource_name: str,
opts: Optional[ResourceOptions] = None,
project_id: Optional[str] = None,
expiration_canceled: Optional[str] = None,
expiration_errored: Optional[str] = None,
expiration_preview: Optional[str] = None,
expiration_production: Optional[str] = None,
team_id: Optional[str] = None)
func NewProjectDeploymentRetention(ctx *Context, name string, args ProjectDeploymentRetentionArgs, opts ...ResourceOption) (*ProjectDeploymentRetention, error)
public ProjectDeploymentRetention(string name, ProjectDeploymentRetentionArgs args, CustomResourceOptions? opts = null)
public ProjectDeploymentRetention(String name, ProjectDeploymentRetentionArgs args)
public ProjectDeploymentRetention(String name, ProjectDeploymentRetentionArgs args, CustomResourceOptions options)
type: vercel:ProjectDeploymentRetention
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 ProjectDeploymentRetentionArgs
- 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 ProjectDeploymentRetentionArgs
- 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 ProjectDeploymentRetentionArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ProjectDeploymentRetentionArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args ProjectDeploymentRetentionArgs
- 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 projectDeploymentRetentionResource = new Vercel.ProjectDeploymentRetention("projectDeploymentRetentionResource", new()
{
ProjectId = "string",
ExpirationCanceled = "string",
ExpirationErrored = "string",
ExpirationPreview = "string",
ExpirationProduction = "string",
TeamId = "string",
});
example, err := vercel.NewProjectDeploymentRetention(ctx, "projectDeploymentRetentionResource", &vercel.ProjectDeploymentRetentionArgs{
ProjectId: pulumi.String("string"),
ExpirationCanceled: pulumi.String("string"),
ExpirationErrored: pulumi.String("string"),
ExpirationPreview: pulumi.String("string"),
ExpirationProduction: pulumi.String("string"),
TeamId: pulumi.String("string"),
})
var projectDeploymentRetentionResource = new ProjectDeploymentRetention("projectDeploymentRetentionResource", ProjectDeploymentRetentionArgs.builder()
.projectId("string")
.expirationCanceled("string")
.expirationErrored("string")
.expirationPreview("string")
.expirationProduction("string")
.teamId("string")
.build());
project_deployment_retention_resource = vercel.ProjectDeploymentRetention("projectDeploymentRetentionResource",
project_id="string",
expiration_canceled="string",
expiration_errored="string",
expiration_preview="string",
expiration_production="string",
team_id="string")
const projectDeploymentRetentionResource = new vercel.ProjectDeploymentRetention("projectDeploymentRetentionResource", {
projectId: "string",
expirationCanceled: "string",
expirationErrored: "string",
expirationPreview: "string",
expirationProduction: "string",
teamId: "string",
});
type: vercel:ProjectDeploymentRetention
properties:
expirationCanceled: string
expirationErrored: string
expirationPreview: string
expirationProduction: string
projectId: string
teamId: string
ProjectDeploymentRetention 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 ProjectDeploymentRetention resource accepts the following input properties:
- Project
Id string - The ID of the Project for the retention policy
- Expiration
Canceled string - The retention period for canceled deployments. Should be one of '1m', '2m', '3m', '6m', '1y', 'unlimited'.
- Expiration
Errored string - The retention period for errored deployments. Should be one of '1m', '2m', '3m', '6m', '1y', 'unlimited'.
- Expiration
Preview string - The retention period for preview deployments. Should be one of '1m', '2m', '3m', '6m', '1y', 'unlimited'.
- Expiration
Production string - The retention period for production deployments. Should be one of '1m', '2m', '3m', '6m', '1y', 'unlimited'.
- Team
Id string - The ID of the Vercel team.
- Project
Id string - The ID of the Project for the retention policy
- Expiration
Canceled string - The retention period for canceled deployments. Should be one of '1m', '2m', '3m', '6m', '1y', 'unlimited'.
- Expiration
Errored string - The retention period for errored deployments. Should be one of '1m', '2m', '3m', '6m', '1y', 'unlimited'.
- Expiration
Preview string - The retention period for preview deployments. Should be one of '1m', '2m', '3m', '6m', '1y', 'unlimited'.
- Expiration
Production string - The retention period for production deployments. Should be one of '1m', '2m', '3m', '6m', '1y', 'unlimited'.
- Team
Id string - The ID of the Vercel team.
- project
Id String - The ID of the Project for the retention policy
- expiration
Canceled String - The retention period for canceled deployments. Should be one of '1m', '2m', '3m', '6m', '1y', 'unlimited'.
- expiration
Errored String - The retention period for errored deployments. Should be one of '1m', '2m', '3m', '6m', '1y', 'unlimited'.
- expiration
Preview String - The retention period for preview deployments. Should be one of '1m', '2m', '3m', '6m', '1y', 'unlimited'.
- expiration
Production String - The retention period for production deployments. Should be one of '1m', '2m', '3m', '6m', '1y', 'unlimited'.
- team
Id String - The ID of the Vercel team.
- project
Id string - The ID of the Project for the retention policy
- expiration
Canceled string - The retention period for canceled deployments. Should be one of '1m', '2m', '3m', '6m', '1y', 'unlimited'.
- expiration
Errored string - The retention period for errored deployments. Should be one of '1m', '2m', '3m', '6m', '1y', 'unlimited'.
- expiration
Preview string - The retention period for preview deployments. Should be one of '1m', '2m', '3m', '6m', '1y', 'unlimited'.
- expiration
Production string - The retention period for production deployments. Should be one of '1m', '2m', '3m', '6m', '1y', 'unlimited'.
- team
Id string - The ID of the Vercel team.
- project_
id str - The ID of the Project for the retention policy
- expiration_
canceled str - The retention period for canceled deployments. Should be one of '1m', '2m', '3m', '6m', '1y', 'unlimited'.
- expiration_
errored str - The retention period for errored deployments. Should be one of '1m', '2m', '3m', '6m', '1y', 'unlimited'.
- expiration_
preview str - The retention period for preview deployments. Should be one of '1m', '2m', '3m', '6m', '1y', 'unlimited'.
- expiration_
production str - The retention period for production deployments. Should be one of '1m', '2m', '3m', '6m', '1y', 'unlimited'.
- team_
id str - The ID of the Vercel team.
- project
Id String - The ID of the Project for the retention policy
- expiration
Canceled String - The retention period for canceled deployments. Should be one of '1m', '2m', '3m', '6m', '1y', 'unlimited'.
- expiration
Errored String - The retention period for errored deployments. Should be one of '1m', '2m', '3m', '6m', '1y', 'unlimited'.
- expiration
Preview String - The retention period for preview deployments. Should be one of '1m', '2m', '3m', '6m', '1y', 'unlimited'.
- expiration
Production String - The retention period for production deployments. Should be one of '1m', '2m', '3m', '6m', '1y', 'unlimited'.
- team
Id String - The ID of the Vercel team.
Outputs
All input properties are implicitly available as output properties. Additionally, the ProjectDeploymentRetention 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 ProjectDeploymentRetention Resource
Get an existing ProjectDeploymentRetention 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?: ProjectDeploymentRetentionState, opts?: CustomResourceOptions): ProjectDeploymentRetention
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
expiration_canceled: Optional[str] = None,
expiration_errored: Optional[str] = None,
expiration_preview: Optional[str] = None,
expiration_production: Optional[str] = None,
project_id: Optional[str] = None,
team_id: Optional[str] = None) -> ProjectDeploymentRetention
func GetProjectDeploymentRetention(ctx *Context, name string, id IDInput, state *ProjectDeploymentRetentionState, opts ...ResourceOption) (*ProjectDeploymentRetention, error)
public static ProjectDeploymentRetention Get(string name, Input<string> id, ProjectDeploymentRetentionState? state, CustomResourceOptions? opts = null)
public static ProjectDeploymentRetention get(String name, Output<String> id, ProjectDeploymentRetentionState state, CustomResourceOptions options)
resources: _: type: vercel:ProjectDeploymentRetention 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.
- Expiration
Canceled string - The retention period for canceled deployments. Should be one of '1m', '2m', '3m', '6m', '1y', 'unlimited'.
- Expiration
Errored string - The retention period for errored deployments. Should be one of '1m', '2m', '3m', '6m', '1y', 'unlimited'.
- Expiration
Preview string - The retention period for preview deployments. Should be one of '1m', '2m', '3m', '6m', '1y', 'unlimited'.
- Expiration
Production string - The retention period for production deployments. Should be one of '1m', '2m', '3m', '6m', '1y', 'unlimited'.
- Project
Id string - The ID of the Project for the retention policy
- Team
Id string - The ID of the Vercel team.
- Expiration
Canceled string - The retention period for canceled deployments. Should be one of '1m', '2m', '3m', '6m', '1y', 'unlimited'.
- Expiration
Errored string - The retention period for errored deployments. Should be one of '1m', '2m', '3m', '6m', '1y', 'unlimited'.
- Expiration
Preview string - The retention period for preview deployments. Should be one of '1m', '2m', '3m', '6m', '1y', 'unlimited'.
- Expiration
Production string - The retention period for production deployments. Should be one of '1m', '2m', '3m', '6m', '1y', 'unlimited'.
- Project
Id string - The ID of the Project for the retention policy
- Team
Id string - The ID of the Vercel team.
- expiration
Canceled String - The retention period for canceled deployments. Should be one of '1m', '2m', '3m', '6m', '1y', 'unlimited'.
- expiration
Errored String - The retention period for errored deployments. Should be one of '1m', '2m', '3m', '6m', '1y', 'unlimited'.
- expiration
Preview String - The retention period for preview deployments. Should be one of '1m', '2m', '3m', '6m', '1y', 'unlimited'.
- expiration
Production String - The retention period for production deployments. Should be one of '1m', '2m', '3m', '6m', '1y', 'unlimited'.
- project
Id String - The ID of the Project for the retention policy
- team
Id String - The ID of the Vercel team.
- expiration
Canceled string - The retention period for canceled deployments. Should be one of '1m', '2m', '3m', '6m', '1y', 'unlimited'.
- expiration
Errored string - The retention period for errored deployments. Should be one of '1m', '2m', '3m', '6m', '1y', 'unlimited'.
- expiration
Preview string - The retention period for preview deployments. Should be one of '1m', '2m', '3m', '6m', '1y', 'unlimited'.
- expiration
Production string - The retention period for production deployments. Should be one of '1m', '2m', '3m', '6m', '1y', 'unlimited'.
- project
Id string - The ID of the Project for the retention policy
- team
Id string - The ID of the Vercel team.
- expiration_
canceled str - The retention period for canceled deployments. Should be one of '1m', '2m', '3m', '6m', '1y', 'unlimited'.
- expiration_
errored str - The retention period for errored deployments. Should be one of '1m', '2m', '3m', '6m', '1y', 'unlimited'.
- expiration_
preview str - The retention period for preview deployments. Should be one of '1m', '2m', '3m', '6m', '1y', 'unlimited'.
- expiration_
production str - The retention period for production deployments. Should be one of '1m', '2m', '3m', '6m', '1y', 'unlimited'.
- project_
id str - The ID of the Project for the retention policy
- team_
id str - The ID of the Vercel team.
- expiration
Canceled String - The retention period for canceled deployments. Should be one of '1m', '2m', '3m', '6m', '1y', 'unlimited'.
- expiration
Errored String - The retention period for errored deployments. Should be one of '1m', '2m', '3m', '6m', '1y', 'unlimited'.
- expiration
Preview String - The retention period for preview deployments. Should be one of '1m', '2m', '3m', '6m', '1y', 'unlimited'.
- expiration
Production String - The retention period for production deployments. Should be one of '1m', '2m', '3m', '6m', '1y', 'unlimited'.
- project
Id String - The ID of the Project for the retention policy
- team
Id String - The ID of the Vercel team.
Package Details
- Repository
- vercel pulumiverse/pulumi-vercel
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
vercel
Terraform Provider.