1. Packages
  2. Vercel
  3. API Docs
  4. getProjectDeploymentRetention
Vercel v1.14.2 published on Sunday, Sep 22, 2024 by Pulumiverse

vercel.getProjectDeploymentRetention

Explore with Pulumi AI

vercel logo
Vercel v1.14.2 published on Sunday, Sep 22, 2024 by Pulumiverse

    Provides a Project Deployment Retention datasource.

    A Project Deployment Retention datasource details information about Deployment Retention on a Vercel Project.

    For more detailed information, please see the Vercel documentation.

    Using getProjectDeploymentRetention

    Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.

    function getProjectDeploymentRetention(args: GetProjectDeploymentRetentionArgs, opts?: InvokeOptions): Promise<GetProjectDeploymentRetentionResult>
    function getProjectDeploymentRetentionOutput(args: GetProjectDeploymentRetentionOutputArgs, opts?: InvokeOptions): Output<GetProjectDeploymentRetentionResult>
    def get_project_deployment_retention(project_id: Optional[str] = None,
                                         team_id: Optional[str] = None,
                                         opts: Optional[InvokeOptions] = None) -> GetProjectDeploymentRetentionResult
    def get_project_deployment_retention_output(project_id: Optional[pulumi.Input[str]] = None,
                                         team_id: Optional[pulumi.Input[str]] = None,
                                         opts: Optional[InvokeOptions] = None) -> Output[GetProjectDeploymentRetentionResult]
    func LookupProjectDeploymentRetention(ctx *Context, args *LookupProjectDeploymentRetentionArgs, opts ...InvokeOption) (*LookupProjectDeploymentRetentionResult, error)
    func LookupProjectDeploymentRetentionOutput(ctx *Context, args *LookupProjectDeploymentRetentionOutputArgs, opts ...InvokeOption) LookupProjectDeploymentRetentionResultOutput

    > Note: This function is named LookupProjectDeploymentRetention in the Go SDK.

    public static class GetProjectDeploymentRetention 
    {
        public static Task<GetProjectDeploymentRetentionResult> InvokeAsync(GetProjectDeploymentRetentionArgs args, InvokeOptions? opts = null)
        public static Output<GetProjectDeploymentRetentionResult> Invoke(GetProjectDeploymentRetentionInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetProjectDeploymentRetentionResult> getProjectDeploymentRetention(GetProjectDeploymentRetentionArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: vercel:index/getProjectDeploymentRetention:getProjectDeploymentRetention
      arguments:
        # arguments dictionary

    The following arguments are supported:

    ProjectId string
    The ID of the Project for the retention policy
    TeamId string
    The ID of the Vercel team.
    ProjectId string
    The ID of the Project for the retention policy
    TeamId string
    The ID of the Vercel team.
    projectId String
    The ID of the Project for the retention policy
    teamId String
    The ID of the Vercel team.
    projectId string
    The ID of the Project for the retention policy
    teamId string
    The ID of the Vercel team.
    project_id str
    The ID of the Project for the retention policy
    team_id str
    The ID of the Vercel team.
    projectId String
    The ID of the Project for the retention policy
    teamId String
    The ID of the Vercel team.

    getProjectDeploymentRetention Result

    The following output properties are available:

    ExpirationCanceled string
    The retention period for canceled deployments.
    ExpirationErrored string
    The retention period for errored deployments.
    ExpirationPreview string
    The retention period for preview deployments.
    ExpirationProduction string
    The retention period for production deployments.
    Id string
    The ID of this resource.
    ProjectId string
    The ID of the Project for the retention policy
    TeamId string
    The ID of the Vercel team.
    ExpirationCanceled string
    The retention period for canceled deployments.
    ExpirationErrored string
    The retention period for errored deployments.
    ExpirationPreview string
    The retention period for preview deployments.
    ExpirationProduction string
    The retention period for production deployments.
    Id string
    The ID of this resource.
    ProjectId string
    The ID of the Project for the retention policy
    TeamId string
    The ID of the Vercel team.
    expirationCanceled String
    The retention period for canceled deployments.
    expirationErrored String
    The retention period for errored deployments.
    expirationPreview String
    The retention period for preview deployments.
    expirationProduction String
    The retention period for production deployments.
    id String
    The ID of this resource.
    projectId String
    The ID of the Project for the retention policy
    teamId String
    The ID of the Vercel team.
    expirationCanceled string
    The retention period for canceled deployments.
    expirationErrored string
    The retention period for errored deployments.
    expirationPreview string
    The retention period for preview deployments.
    expirationProduction string
    The retention period for production deployments.
    id string
    The ID of this resource.
    projectId string
    The ID of the Project for the retention policy
    teamId string
    The ID of the Vercel team.
    expiration_canceled str
    The retention period for canceled deployments.
    expiration_errored str
    The retention period for errored deployments.
    expiration_preview str
    The retention period for preview deployments.
    expiration_production str
    The retention period for production deployments.
    id str
    The ID of this resource.
    project_id str
    The ID of the Project for the retention policy
    team_id str
    The ID of the Vercel team.
    expirationCanceled String
    The retention period for canceled deployments.
    expirationErrored String
    The retention period for errored deployments.
    expirationPreview String
    The retention period for preview deployments.
    expirationProduction String
    The retention period for production deployments.
    id String
    The ID of this resource.
    projectId String
    The ID of the Project for the retention policy
    teamId 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.
    vercel logo
    Vercel v1.14.2 published on Sunday, Sep 22, 2024 by Pulumiverse