1. Packages
  2. Harness
  3. API Docs
  4. platform
  5. ManualFreeze
Harness v0.1.2 published on Friday, Jul 19, 2024 by Pulumi

harness.platform.ManualFreeze

Explore with Pulumi AI

harness logo
Harness v0.1.2 published on Friday, Jul 19, 2024 by Pulumi

    Resource for Manual Deployment Freeze Window.

    Example to create Manual Freeze at different levels (Org, Project, Account)

    Account Level

    import * as pulumi from "@pulumi/pulumi";
    import * as harness from "@pulumi/harness";
    
    const example = new harness.platform.ManualFreeze("example", {
        identifier: "identifier",
        orgId: "orgIdentifier",
        projectId: "projectIdentifier",
        accountId: "accountIdentifier",
        yaml: `freeze:
      name: freezeName
      identifier: identifier
      entityConfigs:
        - name: r1
          entities:
            - filterType: All
              type: Org
            - filterType: All
              type: Project
            - filterType: All
              type: Service
            - filterType: All
              type: EnvType
      status: Disabled
      description: hi
      windows:
      - timeZone: Asia/Calcutta
        startTime: 2023-05-03 04:16 PM
        duration: 30m
        recurrence:
          type: Daily
      notificationRules: []
      tags: {}
    `,
    });
    
    import pulumi
    import pulumi_harness as harness
    
    example = harness.platform.ManualFreeze("example",
        identifier="identifier",
        org_id="orgIdentifier",
        project_id="projectIdentifier",
        account_id="accountIdentifier",
        yaml="""freeze:
      name: freezeName
      identifier: identifier
      entityConfigs:
        - name: r1
          entities:
            - filterType: All
              type: Org
            - filterType: All
              type: Project
            - filterType: All
              type: Service
            - filterType: All
              type: EnvType
      status: Disabled
      description: hi
      windows:
      - timeZone: Asia/Calcutta
        startTime: 2023-05-03 04:16 PM
        duration: 30m
        recurrence:
          type: Daily
      notificationRules: []
      tags: {}
    """)
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-harness/sdk/go/harness/platform"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := platform.NewManualFreeze(ctx, "example", &platform.ManualFreezeArgs{
    			Identifier: pulumi.String("identifier"),
    			OrgId:      pulumi.String("orgIdentifier"),
    			ProjectId:  pulumi.String("projectIdentifier"),
    			AccountId:  pulumi.String("accountIdentifier"),
    			Yaml: pulumi.String(`freeze:
      name: freezeName
      identifier: identifier
      entityConfigs:
        - name: r1
          entities:
            - filterType: All
              type: Org
            - filterType: All
              type: Project
            - filterType: All
              type: Service
            - filterType: All
              type: EnvType
      status: Disabled
      description: hi
      windows:
      - timeZone: Asia/Calcutta
        startTime: 2023-05-03 04:16 PM
        duration: 30m
        recurrence:
          type: Daily
      notificationRules: []
      tags: {}
    `),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Harness = Pulumi.Harness;
    
    return await Deployment.RunAsync(() => 
    {
        var example = new Harness.Platform.ManualFreeze("example", new()
        {
            Identifier = "identifier",
            OrgId = "orgIdentifier",
            ProjectId = "projectIdentifier",
            AccountId = "accountIdentifier",
            Yaml = @"freeze:
      name: freezeName
      identifier: identifier
      entityConfigs:
        - name: r1
          entities:
            - filterType: All
              type: Org
            - filterType: All
              type: Project
            - filterType: All
              type: Service
            - filterType: All
              type: EnvType
      status: Disabled
      description: hi
      windows:
      - timeZone: Asia/Calcutta
        startTime: 2023-05-03 04:16 PM
        duration: 30m
        recurrence:
          type: Daily
      notificationRules: []
      tags: {}
    ",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.harness.platform.ManualFreeze;
    import com.pulumi.harness.platform.ManualFreezeArgs;
    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 ManualFreeze("example", ManualFreezeArgs.builder()
                .identifier("identifier")
                .orgId("orgIdentifier")
                .projectId("projectIdentifier")
                .accountId("accountIdentifier")
                .yaml("""
    freeze:
      name: freezeName
      identifier: identifier
      entityConfigs:
        - name: r1
          entities:
            - filterType: All
              type: Org
            - filterType: All
              type: Project
            - filterType: All
              type: Service
            - filterType: All
              type: EnvType
      status: Disabled
      description: hi
      windows:
      - timeZone: Asia/Calcutta
        startTime: 2023-05-03 04:16 PM
        duration: 30m
        recurrence:
          type: Daily
      notificationRules: []
      tags: {}
                """)
                .build());
    
        }
    }
    
    resources:
      example:
        type: harness:platform:ManualFreeze
        properties:
          identifier: identifier
          orgId: orgIdentifier
          projectId: projectIdentifier
          accountId: accountIdentifier
          yaml: |
            freeze:
              name: freezeName
              identifier: identifier
              entityConfigs:
                - name: r1
                  entities:
                    - filterType: All
                      type: Org
                    - filterType: All
                      type: Project
                    - filterType: All
                      type: Service
                    - filterType: All
                      type: EnvType
              status: Disabled
              description: hi
              windows:
              - timeZone: Asia/Calcutta
                startTime: 2023-05-03 04:16 PM
                duration: 30m
                recurrence:
                  type: Daily
              notificationRules: []
              tags: {}        
    

    Org Level

    import * as pulumi from "@pulumi/pulumi";
    import * as harness from "@pulumi/harness";
    
    const example = new harness.platform.ManualFreeze("example", {
        identifier: "identifier",
        orgId: "orgIdentifier",
        accountId: "accountIdentifier",
        yaml: `freeze:
      name: freezeName
      identifier: identifier
      entityConfigs:
        - name: r1
          entities:
            - filterType: All
              type: Org
            - filterType: All
              type: Project
            - filterType: All
              type: Service
            - filterType: All
              type: EnvType
      status: Disabled
      description: hi
      windows:
      - timeZone: Asia/Calcutta
        startTime: 2023-05-03 04:16 PM
        duration: 30m
        recurrence:
          type: Daily
      notificationRules: []
      tags: {}
    `,
    });
    
    import pulumi
    import pulumi_harness as harness
    
    example = harness.platform.ManualFreeze("example",
        identifier="identifier",
        org_id="orgIdentifier",
        account_id="accountIdentifier",
        yaml="""freeze:
      name: freezeName
      identifier: identifier
      entityConfigs:
        - name: r1
          entities:
            - filterType: All
              type: Org
            - filterType: All
              type: Project
            - filterType: All
              type: Service
            - filterType: All
              type: EnvType
      status: Disabled
      description: hi
      windows:
      - timeZone: Asia/Calcutta
        startTime: 2023-05-03 04:16 PM
        duration: 30m
        recurrence:
          type: Daily
      notificationRules: []
      tags: {}
    """)
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-harness/sdk/go/harness/platform"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := platform.NewManualFreeze(ctx, "example", &platform.ManualFreezeArgs{
    			Identifier: pulumi.String("identifier"),
    			OrgId:      pulumi.String("orgIdentifier"),
    			AccountId:  pulumi.String("accountIdentifier"),
    			Yaml: pulumi.String(`freeze:
      name: freezeName
      identifier: identifier
      entityConfigs:
        - name: r1
          entities:
            - filterType: All
              type: Org
            - filterType: All
              type: Project
            - filterType: All
              type: Service
            - filterType: All
              type: EnvType
      status: Disabled
      description: hi
      windows:
      - timeZone: Asia/Calcutta
        startTime: 2023-05-03 04:16 PM
        duration: 30m
        recurrence:
          type: Daily
      notificationRules: []
      tags: {}
    `),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Harness = Pulumi.Harness;
    
    return await Deployment.RunAsync(() => 
    {
        var example = new Harness.Platform.ManualFreeze("example", new()
        {
            Identifier = "identifier",
            OrgId = "orgIdentifier",
            AccountId = "accountIdentifier",
            Yaml = @"freeze:
      name: freezeName
      identifier: identifier
      entityConfigs:
        - name: r1
          entities:
            - filterType: All
              type: Org
            - filterType: All
              type: Project
            - filterType: All
              type: Service
            - filterType: All
              type: EnvType
      status: Disabled
      description: hi
      windows:
      - timeZone: Asia/Calcutta
        startTime: 2023-05-03 04:16 PM
        duration: 30m
        recurrence:
          type: Daily
      notificationRules: []
      tags: {}
    ",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.harness.platform.ManualFreeze;
    import com.pulumi.harness.platform.ManualFreezeArgs;
    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 ManualFreeze("example", ManualFreezeArgs.builder()
                .identifier("identifier")
                .orgId("orgIdentifier")
                .accountId("accountIdentifier")
                .yaml("""
    freeze:
      name: freezeName
      identifier: identifier
      entityConfigs:
        - name: r1
          entities:
            - filterType: All
              type: Org
            - filterType: All
              type: Project
            - filterType: All
              type: Service
            - filterType: All
              type: EnvType
      status: Disabled
      description: hi
      windows:
      - timeZone: Asia/Calcutta
        startTime: 2023-05-03 04:16 PM
        duration: 30m
        recurrence:
          type: Daily
      notificationRules: []
      tags: {}
                """)
                .build());
    
        }
    }
    
    resources:
      example:
        type: harness:platform:ManualFreeze
        properties:
          identifier: identifier
          orgId: orgIdentifier
          accountId: accountIdentifier
          yaml: |
            freeze:
              name: freezeName
              identifier: identifier
              entityConfigs:
                - name: r1
                  entities:
                    - filterType: All
                      type: Org
                    - filterType: All
                      type: Project
                    - filterType: All
                      type: Service
                    - filterType: All
                      type: EnvType
              status: Disabled
              description: hi
              windows:
              - timeZone: Asia/Calcutta
                startTime: 2023-05-03 04:16 PM
                duration: 30m
                recurrence:
                  type: Daily
              notificationRules: []
              tags: {}        
    

    Project Level

    import * as pulumi from "@pulumi/pulumi";
    import * as harness from "@pulumi/harness";
    
    const example = new harness.platform.ManualFreeze("example", {
        identifier: "identifier",
        orgId: "orgIdentifier",
        projectId: "projectIdentifier",
        accountId: "accountIdentifier",
        yaml: `freeze:
      name: freezeName
      identifier: identifier
      entityConfigs:
        - name: r1
          entities:
            - filterType: All
              type: Org
            - filterType: All
              type: Project
            - filterType: All
              type: Service
            - filterType: All
              type: EnvType
      status: Disabled
      description: hi
      windows:
      - timeZone: Asia/Calcutta
        startTime: 2023-05-03 04:16 PM
        duration: 30m
        recurrence:
          type: Daily
      notificationRules: []
      tags: {}
    `,
    });
    
    import pulumi
    import pulumi_harness as harness
    
    example = harness.platform.ManualFreeze("example",
        identifier="identifier",
        org_id="orgIdentifier",
        project_id="projectIdentifier",
        account_id="accountIdentifier",
        yaml="""freeze:
      name: freezeName
      identifier: identifier
      entityConfigs:
        - name: r1
          entities:
            - filterType: All
              type: Org
            - filterType: All
              type: Project
            - filterType: All
              type: Service
            - filterType: All
              type: EnvType
      status: Disabled
      description: hi
      windows:
      - timeZone: Asia/Calcutta
        startTime: 2023-05-03 04:16 PM
        duration: 30m
        recurrence:
          type: Daily
      notificationRules: []
      tags: {}
    """)
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-harness/sdk/go/harness/platform"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := platform.NewManualFreeze(ctx, "example", &platform.ManualFreezeArgs{
    			Identifier: pulumi.String("identifier"),
    			OrgId:      pulumi.String("orgIdentifier"),
    			ProjectId:  pulumi.String("projectIdentifier"),
    			AccountId:  pulumi.String("accountIdentifier"),
    			Yaml: pulumi.String(`freeze:
      name: freezeName
      identifier: identifier
      entityConfigs:
        - name: r1
          entities:
            - filterType: All
              type: Org
            - filterType: All
              type: Project
            - filterType: All
              type: Service
            - filterType: All
              type: EnvType
      status: Disabled
      description: hi
      windows:
      - timeZone: Asia/Calcutta
        startTime: 2023-05-03 04:16 PM
        duration: 30m
        recurrence:
          type: Daily
      notificationRules: []
      tags: {}
    `),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Harness = Pulumi.Harness;
    
    return await Deployment.RunAsync(() => 
    {
        var example = new Harness.Platform.ManualFreeze("example", new()
        {
            Identifier = "identifier",
            OrgId = "orgIdentifier",
            ProjectId = "projectIdentifier",
            AccountId = "accountIdentifier",
            Yaml = @"freeze:
      name: freezeName
      identifier: identifier
      entityConfigs:
        - name: r1
          entities:
            - filterType: All
              type: Org
            - filterType: All
              type: Project
            - filterType: All
              type: Service
            - filterType: All
              type: EnvType
      status: Disabled
      description: hi
      windows:
      - timeZone: Asia/Calcutta
        startTime: 2023-05-03 04:16 PM
        duration: 30m
        recurrence:
          type: Daily
      notificationRules: []
      tags: {}
    ",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.harness.platform.ManualFreeze;
    import com.pulumi.harness.platform.ManualFreezeArgs;
    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 ManualFreeze("example", ManualFreezeArgs.builder()
                .identifier("identifier")
                .orgId("orgIdentifier")
                .projectId("projectIdentifier")
                .accountId("accountIdentifier")
                .yaml("""
    freeze:
      name: freezeName
      identifier: identifier
      entityConfigs:
        - name: r1
          entities:
            - filterType: All
              type: Org
            - filterType: All
              type: Project
            - filterType: All
              type: Service
            - filterType: All
              type: EnvType
      status: Disabled
      description: hi
      windows:
      - timeZone: Asia/Calcutta
        startTime: 2023-05-03 04:16 PM
        duration: 30m
        recurrence:
          type: Daily
      notificationRules: []
      tags: {}
                """)
                .build());
    
        }
    }
    
    resources:
      example:
        type: harness:platform:ManualFreeze
        properties:
          identifier: identifier
          orgId: orgIdentifier
          projectId: projectIdentifier
          accountId: accountIdentifier
          yaml: |
            freeze:
              name: freezeName
              identifier: identifier
              entityConfigs:
                - name: r1
                  entities:
                    - filterType: All
                      type: Org
                    - filterType: All
                      type: Project
                    - filterType: All
                      type: Service
                    - filterType: All
                      type: EnvType
              status: Disabled
              description: hi
              windows:
              - timeZone: Asia/Calcutta
                startTime: 2023-05-03 04:16 PM
                duration: 30m
                recurrence:
                  type: Daily
              notificationRules: []
              tags: {}        
    

    Create ManualFreeze Resource

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

    Constructor syntax

    new ManualFreeze(name: string, args: ManualFreezeArgs, opts?: CustomResourceOptions);
    @overload
    def ManualFreeze(resource_name: str,
                     args: ManualFreezeArgs,
                     opts: Optional[ResourceOptions] = None)
    
    @overload
    def ManualFreeze(resource_name: str,
                     opts: Optional[ResourceOptions] = None,
                     account_id: Optional[str] = None,
                     identifier: Optional[str] = None,
                     yaml: Optional[str] = None,
                     org_id: Optional[str] = None,
                     project_id: Optional[str] = None)
    func NewManualFreeze(ctx *Context, name string, args ManualFreezeArgs, opts ...ResourceOption) (*ManualFreeze, error)
    public ManualFreeze(string name, ManualFreezeArgs args, CustomResourceOptions? opts = null)
    public ManualFreeze(String name, ManualFreezeArgs args)
    public ManualFreeze(String name, ManualFreezeArgs args, CustomResourceOptions options)
    
    type: harness:platform:ManualFreeze
    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 ManualFreezeArgs
    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 ManualFreezeArgs
    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 ManualFreezeArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args ManualFreezeArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args ManualFreezeArgs
    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 manualFreezeResource = new Harness.Platform.ManualFreeze("manualFreezeResource", new()
    {
        AccountId = "string",
        Identifier = "string",
        Yaml = "string",
        OrgId = "string",
        ProjectId = "string",
    });
    
    example, err := platform.NewManualFreeze(ctx, "manualFreezeResource", &platform.ManualFreezeArgs{
    	AccountId:  pulumi.String("string"),
    	Identifier: pulumi.String("string"),
    	Yaml:       pulumi.String("string"),
    	OrgId:      pulumi.String("string"),
    	ProjectId:  pulumi.String("string"),
    })
    
    var manualFreezeResource = new ManualFreeze("manualFreezeResource", ManualFreezeArgs.builder()
        .accountId("string")
        .identifier("string")
        .yaml("string")
        .orgId("string")
        .projectId("string")
        .build());
    
    manual_freeze_resource = harness.platform.ManualFreeze("manualFreezeResource",
        account_id="string",
        identifier="string",
        yaml="string",
        org_id="string",
        project_id="string")
    
    const manualFreezeResource = new harness.platform.ManualFreeze("manualFreezeResource", {
        accountId: "string",
        identifier: "string",
        yaml: "string",
        orgId: "string",
        projectId: "string",
    });
    
    type: harness:platform:ManualFreeze
    properties:
        accountId: string
        identifier: string
        orgId: string
        projectId: string
        yaml: string
    

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

    AccountId string
    Account Identifier of the freeze
    Identifier string
    Identifier of the freeze
    Yaml string
    Yaml of the freeze
    OrgId string
    Organization identifier of the freeze
    ProjectId string
    Project identifier of the freeze
    AccountId string
    Account Identifier of the freeze
    Identifier string
    Identifier of the freeze
    Yaml string
    Yaml of the freeze
    OrgId string
    Organization identifier of the freeze
    ProjectId string
    Project identifier of the freeze
    accountId String
    Account Identifier of the freeze
    identifier String
    Identifier of the freeze
    yaml String
    Yaml of the freeze
    orgId String
    Organization identifier of the freeze
    projectId String
    Project identifier of the freeze
    accountId string
    Account Identifier of the freeze
    identifier string
    Identifier of the freeze
    yaml string
    Yaml of the freeze
    orgId string
    Organization identifier of the freeze
    projectId string
    Project identifier of the freeze
    account_id str
    Account Identifier of the freeze
    identifier str
    Identifier of the freeze
    yaml str
    Yaml of the freeze
    org_id str
    Organization identifier of the freeze
    project_id str
    Project identifier of the freeze
    accountId String
    Account Identifier of the freeze
    identifier String
    Identifier of the freeze
    yaml String
    Yaml of the freeze
    orgId String
    Organization identifier of the freeze
    projectId String
    Project identifier of the freeze

    Outputs

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

    CurrentOrUpcomingWindows List<ManualFreezeCurrentOrUpcomingWindow>
    Current or upcoming windows
    Description string
    Description of the freeze
    FreezeWindows List<ManualFreezeFreezeWindow>
    Freeze windows in the freeze response
    Id string
    The provider-assigned unique ID for this managed resource.
    Name string
    Name of the freeze
    Scope string
    Scope of the freeze
    Status string
    Status of the freeze
    Tags List<string>
    Tags associated with the freeze
    Type string
    Type of freeze
    CurrentOrUpcomingWindows []ManualFreezeCurrentOrUpcomingWindow
    Current or upcoming windows
    Description string
    Description of the freeze
    FreezeWindows []ManualFreezeFreezeWindow
    Freeze windows in the freeze response
    Id string
    The provider-assigned unique ID for this managed resource.
    Name string
    Name of the freeze
    Scope string
    Scope of the freeze
    Status string
    Status of the freeze
    Tags []string
    Tags associated with the freeze
    Type string
    Type of freeze
    currentOrUpcomingWindows List<ManualFreezeCurrentOrUpcomingWindow>
    Current or upcoming windows
    description String
    Description of the freeze
    freezeWindows List<ManualFreezeFreezeWindow>
    Freeze windows in the freeze response
    id String
    The provider-assigned unique ID for this managed resource.
    name String
    Name of the freeze
    scope String
    Scope of the freeze
    status String
    Status of the freeze
    tags List<String>
    Tags associated with the freeze
    type String
    Type of freeze
    currentOrUpcomingWindows ManualFreezeCurrentOrUpcomingWindow[]
    Current or upcoming windows
    description string
    Description of the freeze
    freezeWindows ManualFreezeFreezeWindow[]
    Freeze windows in the freeze response
    id string
    The provider-assigned unique ID for this managed resource.
    name string
    Name of the freeze
    scope string
    Scope of the freeze
    status string
    Status of the freeze
    tags string[]
    Tags associated with the freeze
    type string
    Type of freeze
    current_or_upcoming_windows Sequence[ManualFreezeCurrentOrUpcomingWindow]
    Current or upcoming windows
    description str
    Description of the freeze
    freeze_windows Sequence[ManualFreezeFreezeWindow]
    Freeze windows in the freeze response
    id str
    The provider-assigned unique ID for this managed resource.
    name str
    Name of the freeze
    scope str
    Scope of the freeze
    status str
    Status of the freeze
    tags Sequence[str]
    Tags associated with the freeze
    type str
    Type of freeze
    currentOrUpcomingWindows List<Property Map>
    Current or upcoming windows
    description String
    Description of the freeze
    freezeWindows List<Property Map>
    Freeze windows in the freeze response
    id String
    The provider-assigned unique ID for this managed resource.
    name String
    Name of the freeze
    scope String
    Scope of the freeze
    status String
    Status of the freeze
    tags List<String>
    Tags associated with the freeze
    type String
    Type of freeze

    Look up Existing ManualFreeze Resource

    Get an existing ManualFreeze 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?: ManualFreezeState, opts?: CustomResourceOptions): ManualFreeze
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            account_id: Optional[str] = None,
            current_or_upcoming_windows: Optional[Sequence[ManualFreezeCurrentOrUpcomingWindowArgs]] = None,
            description: Optional[str] = None,
            freeze_windows: Optional[Sequence[ManualFreezeFreezeWindowArgs]] = None,
            identifier: Optional[str] = None,
            name: Optional[str] = None,
            org_id: Optional[str] = None,
            project_id: Optional[str] = None,
            scope: Optional[str] = None,
            status: Optional[str] = None,
            tags: Optional[Sequence[str]] = None,
            type: Optional[str] = None,
            yaml: Optional[str] = None) -> ManualFreeze
    func GetManualFreeze(ctx *Context, name string, id IDInput, state *ManualFreezeState, opts ...ResourceOption) (*ManualFreeze, error)
    public static ManualFreeze Get(string name, Input<string> id, ManualFreezeState? state, CustomResourceOptions? opts = null)
    public static ManualFreeze get(String name, Output<String> id, ManualFreezeState 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:
    AccountId string
    Account Identifier of the freeze
    CurrentOrUpcomingWindows List<ManualFreezeCurrentOrUpcomingWindow>
    Current or upcoming windows
    Description string
    Description of the freeze
    FreezeWindows List<ManualFreezeFreezeWindow>
    Freeze windows in the freeze response
    Identifier string
    Identifier of the freeze
    Name string
    Name of the freeze
    OrgId string
    Organization identifier of the freeze
    ProjectId string
    Project identifier of the freeze
    Scope string
    Scope of the freeze
    Status string
    Status of the freeze
    Tags List<string>
    Tags associated with the freeze
    Type string
    Type of freeze
    Yaml string
    Yaml of the freeze
    AccountId string
    Account Identifier of the freeze
    CurrentOrUpcomingWindows []ManualFreezeCurrentOrUpcomingWindowArgs
    Current or upcoming windows
    Description string
    Description of the freeze
    FreezeWindows []ManualFreezeFreezeWindowArgs
    Freeze windows in the freeze response
    Identifier string
    Identifier of the freeze
    Name string
    Name of the freeze
    OrgId string
    Organization identifier of the freeze
    ProjectId string
    Project identifier of the freeze
    Scope string
    Scope of the freeze
    Status string
    Status of the freeze
    Tags []string
    Tags associated with the freeze
    Type string
    Type of freeze
    Yaml string
    Yaml of the freeze
    accountId String
    Account Identifier of the freeze
    currentOrUpcomingWindows List<ManualFreezeCurrentOrUpcomingWindow>
    Current or upcoming windows
    description String
    Description of the freeze
    freezeWindows List<ManualFreezeFreezeWindow>
    Freeze windows in the freeze response
    identifier String
    Identifier of the freeze
    name String
    Name of the freeze
    orgId String
    Organization identifier of the freeze
    projectId String
    Project identifier of the freeze
    scope String
    Scope of the freeze
    status String
    Status of the freeze
    tags List<String>
    Tags associated with the freeze
    type String
    Type of freeze
    yaml String
    Yaml of the freeze
    accountId string
    Account Identifier of the freeze
    currentOrUpcomingWindows ManualFreezeCurrentOrUpcomingWindow[]
    Current or upcoming windows
    description string
    Description of the freeze
    freezeWindows ManualFreezeFreezeWindow[]
    Freeze windows in the freeze response
    identifier string
    Identifier of the freeze
    name string
    Name of the freeze
    orgId string
    Organization identifier of the freeze
    projectId string
    Project identifier of the freeze
    scope string
    Scope of the freeze
    status string
    Status of the freeze
    tags string[]
    Tags associated with the freeze
    type string
    Type of freeze
    yaml string
    Yaml of the freeze
    account_id str
    Account Identifier of the freeze
    current_or_upcoming_windows Sequence[ManualFreezeCurrentOrUpcomingWindowArgs]
    Current or upcoming windows
    description str
    Description of the freeze
    freeze_windows Sequence[ManualFreezeFreezeWindowArgs]
    Freeze windows in the freeze response
    identifier str
    Identifier of the freeze
    name str
    Name of the freeze
    org_id str
    Organization identifier of the freeze
    project_id str
    Project identifier of the freeze
    scope str
    Scope of the freeze
    status str
    Status of the freeze
    tags Sequence[str]
    Tags associated with the freeze
    type str
    Type of freeze
    yaml str
    Yaml of the freeze
    accountId String
    Account Identifier of the freeze
    currentOrUpcomingWindows List<Property Map>
    Current or upcoming windows
    description String
    Description of the freeze
    freezeWindows List<Property Map>
    Freeze windows in the freeze response
    identifier String
    Identifier of the freeze
    name String
    Name of the freeze
    orgId String
    Organization identifier of the freeze
    projectId String
    Project identifier of the freeze
    scope String
    Scope of the freeze
    status String
    Status of the freeze
    tags List<String>
    Tags associated with the freeze
    type String
    Type of freeze
    yaml String
    Yaml of the freeze

    Supporting Types

    ManualFreezeCurrentOrUpcomingWindow, ManualFreezeCurrentOrUpcomingWindowArgs

    EndTime int
    End time of the freeze
    StartTime int
    Start time of the freeze
    EndTime int
    End time of the freeze
    StartTime int
    Start time of the freeze
    endTime Integer
    End time of the freeze
    startTime Integer
    Start time of the freeze
    endTime number
    End time of the freeze
    startTime number
    Start time of the freeze
    end_time int
    End time of the freeze
    start_time int
    Start time of the freeze
    endTime Number
    End time of the freeze
    startTime Number
    Start time of the freeze

    ManualFreezeFreezeWindow, ManualFreezeFreezeWindowArgs

    Duration string
    Duration of the freeze
    EndTime string
    End time of the freeze
    Recurrences List<ManualFreezeFreezeWindowRecurrence>
    Recurrence of the freeze window
    StartTime string
    Start time of the freeze
    TimeZone string
    Timezone
    Duration string
    Duration of the freeze
    EndTime string
    End time of the freeze
    Recurrences []ManualFreezeFreezeWindowRecurrence
    Recurrence of the freeze window
    StartTime string
    Start time of the freeze
    TimeZone string
    Timezone
    duration String
    Duration of the freeze
    endTime String
    End time of the freeze
    recurrences List<ManualFreezeFreezeWindowRecurrence>
    Recurrence of the freeze window
    startTime String
    Start time of the freeze
    timeZone String
    Timezone
    duration string
    Duration of the freeze
    endTime string
    End time of the freeze
    recurrences ManualFreezeFreezeWindowRecurrence[]
    Recurrence of the freeze window
    startTime string
    Start time of the freeze
    timeZone string
    Timezone
    duration str
    Duration of the freeze
    end_time str
    End time of the freeze
    recurrences Sequence[ManualFreezeFreezeWindowRecurrence]
    Recurrence of the freeze window
    start_time str
    Start time of the freeze
    time_zone str
    Timezone
    duration String
    Duration of the freeze
    endTime String
    End time of the freeze
    recurrences List<Property Map>
    Recurrence of the freeze window
    startTime String
    Start time of the freeze
    timeZone String
    Timezone

    ManualFreezeFreezeWindowRecurrence, ManualFreezeFreezeWindowRecurrenceArgs

    RecurrenceSpecs List<ManualFreezeFreezeWindowRecurrenceRecurrenceSpec>
    Used to filter resources on their attributes
    Type string
    Recurrence type(Daily, Weekly, Monthly, Yearly)
    RecurrenceSpecs []ManualFreezeFreezeWindowRecurrenceRecurrenceSpec
    Used to filter resources on their attributes
    Type string
    Recurrence type(Daily, Weekly, Monthly, Yearly)
    recurrenceSpecs List<ManualFreezeFreezeWindowRecurrenceRecurrenceSpec>
    Used to filter resources on their attributes
    type String
    Recurrence type(Daily, Weekly, Monthly, Yearly)
    recurrenceSpecs ManualFreezeFreezeWindowRecurrenceRecurrenceSpec[]
    Used to filter resources on their attributes
    type string
    Recurrence type(Daily, Weekly, Monthly, Yearly)
    recurrence_specs Sequence[ManualFreezeFreezeWindowRecurrenceRecurrenceSpec]
    Used to filter resources on their attributes
    type str
    Recurrence type(Daily, Weekly, Monthly, Yearly)
    recurrenceSpecs List<Property Map>
    Used to filter resources on their attributes
    type String
    Recurrence type(Daily, Weekly, Monthly, Yearly)

    ManualFreezeFreezeWindowRecurrenceRecurrenceSpec, ManualFreezeFreezeWindowRecurrenceRecurrenceSpecArgs

    Until string
    Recurrence until timestamp
    Value int
    Value of n, for n months recurrence
    Until string
    Recurrence until timestamp
    Value int
    Value of n, for n months recurrence
    until String
    Recurrence until timestamp
    value Integer
    Value of n, for n months recurrence
    until string
    Recurrence until timestamp
    value number
    Value of n, for n months recurrence
    until str
    Recurrence until timestamp
    value int
    Value of n, for n months recurrence
    until String
    Recurrence until timestamp
    value Number
    Value of n, for n months recurrence

    Import

    Import an account level freeze

    $ pulumi import harness:platform/manualFreeze:ManualFreeze example <freeze_id>
    

    Import an organization level freeze

    $ pulumi import harness:platform/manualFreeze:ManualFreeze example <org_id>/<freeze_id>
    

    Import project level freeze

    $ pulumi import harness:platform/manualFreeze:ManualFreeze example <org_id>/<project_id>/<freeze_id>
    

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    harness pulumi/pulumi-harness
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the harness Terraform Provider.
    harness logo
    Harness v0.1.2 published on Friday, Jul 19, 2024 by Pulumi