1. Packages
  2. Harness
  3. API Docs
  4. platform
  5. ManualFreeze
Harness v0.0.6 published on Saturday, Jul 1, 2023 by lbrlabs

harness.platform.ManualFreeze

Explore with Pulumi AI

harness logo
Harness v0.0.6 published on Saturday, Jul 1, 2023 by lbrlabs

    Resource for Manual Deployment Freeze Window.

    Example Usage

    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Harness = Lbrlabs.PulumiPackage.Harness;
    
    return await Deployment.RunAsync(() => 
    {
        var example = new Harness.Platform.ManualFreeze("example", new()
        {
            AccountId = "accountIdentifier",
            Identifier = "identifier",
            OrgId = "orgIdentifier",
            ProjectId = "projectIdentifier",
            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/lbrlabs/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{
    			AccountId:  pulumi.String("accountIdentifier"),
    			Identifier: pulumi.String("identifier"),
    			OrgId:      pulumi.String("orgIdentifier"),
    			ProjectId:  pulumi.String("projectIdentifier"),
    			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
    	})
    }
    
    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()        
                .accountId("accountIdentifier")
                .identifier("identifier")
                .orgId("orgIdentifier")
                .projectId("projectIdentifier")
                .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());
    
        }
    }
    
    import pulumi
    import lbrlabs_pulumi_harness as harness
    
    example = harness.platform.ManualFreeze("example",
        account_id="accountIdentifier",
        identifier="identifier",
        org_id="orgIdentifier",
        project_id="projectIdentifier",
        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 * as pulumi from "@pulumi/pulumi";
    import * as harness from "@lbrlabs/pulumi-harness";
    
    const example = new harness.platform.ManualFreeze("example", {
        accountId: "accountIdentifier",
        identifier: "identifier",
        orgId: "orgIdentifier",
        projectId: "projectIdentifier",
        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: {}
    
    `,
    });
    
    resources:
      example:
        type: harness:platform:ManualFreeze
        properties:
          accountId: accountIdentifier
          identifier: identifier
          orgId: orgIdentifier
          projectId: projectIdentifier
          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.

    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<Lbrlabs.PulumiPackage.Harness.Platform.Outputs.ManualFreezeCurrentOrUpcomingWindow>
    Current or upcoming windows
    Description string
    Description of the freeze
    FreezeWindows List<Lbrlabs.PulumiPackage.Harness.Platform.Outputs.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<Lbrlabs.PulumiPackage.Harness.Platform.Inputs.ManualFreezeCurrentOrUpcomingWindow>
    Current or upcoming windows
    Description string
    Description of the freeze
    FreezeWindows List<Lbrlabs.PulumiPackage.Harness.Platform.Inputs.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<Lbrlabs.PulumiPackage.Harness.Platform.Inputs.ManualFreezeFreezeWindowRecurrence>
    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
    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>
    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[]
    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]
    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>
    startTime String
    Start time of the freeze
    timeZone String
    Timezone

    ManualFreezeFreezeWindowRecurrence, ManualFreezeFreezeWindowRecurrenceArgs

    ManualFreezeFreezeWindowRecurrenceRecurrenceSpec, ManualFreezeFreezeWindowRecurrenceRecurrenceSpecArgs

    Until string
    Value int
    Until string
    Value int
    until String
    value Integer
    until string
    value number
    until str
    value int
    until String
    value Number

    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 lbrlabs/pulumi-harness
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the harness Terraform Provider.
    harness logo
    Harness v0.0.6 published on Saturday, Jul 1, 2023 by lbrlabs