1. Packages
  2. Google Cloud (GCP) Classic
  3. API Docs
  4. clouddeploy
  5. DeployPolicy
Google Cloud v8.26.0 published on Thursday, Apr 10, 2025 by Pulumi

gcp.clouddeploy.DeployPolicy

Explore with Pulumi AI

A DeployPolicy inhibits manual or DeployPolicy-driven actions within a Delivery Pipeline or Target.

To get more information about DeployPolicy, see:

Example Usage

Clouddeploy Deploy Policy Basic

import * as pulumi from "@pulumi/pulumi";
import * as gcp from "@pulumi/gcp";

const b_deploy_policy = new gcp.clouddeploy.DeployPolicy("b-deploy-policy", {
    name: "cd-policy",
    location: "us-central1",
    selectors: [{
        deliveryPipeline: {
            id: "cd-pipeline",
        },
    }],
    rules: [{
        rolloutRestriction: {
            id: "rule",
            timeWindows: {
                timeZone: "America/Los_Angeles",
                weeklyWindows: [{
                    startTime: {
                        hours: 12,
                        minutes: 0,
                    },
                    endTime: {
                        hours: 13,
                        minutes: 0,
                    },
                }],
            },
        },
    }],
});
Copy
import pulumi
import pulumi_gcp as gcp

b_deploy_policy = gcp.clouddeploy.DeployPolicy("b-deploy-policy",
    name="cd-policy",
    location="us-central1",
    selectors=[{
        "delivery_pipeline": {
            "id": "cd-pipeline",
        },
    }],
    rules=[{
        "rollout_restriction": {
            "id": "rule",
            "time_windows": {
                "time_zone": "America/Los_Angeles",
                "weekly_windows": [{
                    "start_time": {
                        "hours": 12,
                        "minutes": 0,
                    },
                    "end_time": {
                        "hours": 13,
                        "minutes": 0,
                    },
                }],
            },
        },
    }])
Copy
package main

import (
	"github.com/pulumi/pulumi-gcp/sdk/v8/go/gcp/clouddeploy"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := clouddeploy.NewDeployPolicy(ctx, "b-deploy-policy", &clouddeploy.DeployPolicyArgs{
			Name:     pulumi.String("cd-policy"),
			Location: pulumi.String("us-central1"),
			Selectors: clouddeploy.DeployPolicySelectorArray{
				&clouddeploy.DeployPolicySelectorArgs{
					DeliveryPipeline: &clouddeploy.DeployPolicySelectorDeliveryPipelineArgs{
						Id: pulumi.String("cd-pipeline"),
					},
				},
			},
			Rules: clouddeploy.DeployPolicyRuleArray{
				&clouddeploy.DeployPolicyRuleArgs{
					RolloutRestriction: &clouddeploy.DeployPolicyRuleRolloutRestrictionArgs{
						Id: pulumi.String("rule"),
						TimeWindows: &clouddeploy.DeployPolicyRuleRolloutRestrictionTimeWindowsArgs{
							TimeZone: pulumi.String("America/Los_Angeles"),
							WeeklyWindows: clouddeploy.DeployPolicyRuleRolloutRestrictionTimeWindowsWeeklyWindowArray{
								&clouddeploy.DeployPolicyRuleRolloutRestrictionTimeWindowsWeeklyWindowArgs{
									StartTime: &clouddeploy.DeployPolicyRuleRolloutRestrictionTimeWindowsWeeklyWindowStartTimeArgs{
										Hours:   pulumi.Int(12),
										Minutes: pulumi.Int(0),
									},
									EndTime: &clouddeploy.DeployPolicyRuleRolloutRestrictionTimeWindowsWeeklyWindowEndTimeArgs{
										Hours:   pulumi.Int(13),
										Minutes: pulumi.Int(0),
									},
								},
							},
						},
					},
				},
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Gcp = Pulumi.Gcp;

return await Deployment.RunAsync(() => 
{
    var b_deploy_policy = new Gcp.CloudDeploy.DeployPolicy("b-deploy-policy", new()
    {
        Name = "cd-policy",
        Location = "us-central1",
        Selectors = new[]
        {
            new Gcp.CloudDeploy.Inputs.DeployPolicySelectorArgs
            {
                DeliveryPipeline = new Gcp.CloudDeploy.Inputs.DeployPolicySelectorDeliveryPipelineArgs
                {
                    Id = "cd-pipeline",
                },
            },
        },
        Rules = new[]
        {
            new Gcp.CloudDeploy.Inputs.DeployPolicyRuleArgs
            {
                RolloutRestriction = new Gcp.CloudDeploy.Inputs.DeployPolicyRuleRolloutRestrictionArgs
                {
                    Id = "rule",
                    TimeWindows = new Gcp.CloudDeploy.Inputs.DeployPolicyRuleRolloutRestrictionTimeWindowsArgs
                    {
                        TimeZone = "America/Los_Angeles",
                        WeeklyWindows = new[]
                        {
                            new Gcp.CloudDeploy.Inputs.DeployPolicyRuleRolloutRestrictionTimeWindowsWeeklyWindowArgs
                            {
                                StartTime = new Gcp.CloudDeploy.Inputs.DeployPolicyRuleRolloutRestrictionTimeWindowsWeeklyWindowStartTimeArgs
                                {
                                    Hours = 12,
                                    Minutes = 0,
                                },
                                EndTime = new Gcp.CloudDeploy.Inputs.DeployPolicyRuleRolloutRestrictionTimeWindowsWeeklyWindowEndTimeArgs
                                {
                                    Hours = 13,
                                    Minutes = 0,
                                },
                            },
                        },
                    },
                },
            },
        },
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.gcp.clouddeploy.DeployPolicy;
import com.pulumi.gcp.clouddeploy.DeployPolicyArgs;
import com.pulumi.gcp.clouddeploy.inputs.DeployPolicySelectorArgs;
import com.pulumi.gcp.clouddeploy.inputs.DeployPolicySelectorDeliveryPipelineArgs;
import com.pulumi.gcp.clouddeploy.inputs.DeployPolicyRuleArgs;
import com.pulumi.gcp.clouddeploy.inputs.DeployPolicyRuleRolloutRestrictionArgs;
import com.pulumi.gcp.clouddeploy.inputs.DeployPolicyRuleRolloutRestrictionTimeWindowsArgs;
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 b_deploy_policy = new DeployPolicy("b-deploy-policy", DeployPolicyArgs.builder()
            .name("cd-policy")
            .location("us-central1")
            .selectors(DeployPolicySelectorArgs.builder()
                .deliveryPipeline(DeployPolicySelectorDeliveryPipelineArgs.builder()
                    .id("cd-pipeline")
                    .build())
                .build())
            .rules(DeployPolicyRuleArgs.builder()
                .rolloutRestriction(DeployPolicyRuleRolloutRestrictionArgs.builder()
                    .id("rule")
                    .timeWindows(DeployPolicyRuleRolloutRestrictionTimeWindowsArgs.builder()
                        .timeZone("America/Los_Angeles")
                        .weeklyWindows(DeployPolicyRuleRolloutRestrictionTimeWindowsWeeklyWindowArgs.builder()
                            .startTime(DeployPolicyRuleRolloutRestrictionTimeWindowsWeeklyWindowStartTimeArgs.builder()
                                .hours(12)
                                .minutes(0)
                                .build())
                            .endTime(DeployPolicyRuleRolloutRestrictionTimeWindowsWeeklyWindowEndTimeArgs.builder()
                                .hours(13)
                                .minutes(0)
                                .build())
                            .build())
                        .build())
                    .build())
                .build())
            .build());

    }
}
Copy
resources:
  b-deploy-policy:
    type: gcp:clouddeploy:DeployPolicy
    properties:
      name: cd-policy
      location: us-central1
      selectors:
        - deliveryPipeline:
            id: cd-pipeline
      rules:
        - rolloutRestriction:
            id: rule
            timeWindows:
              timeZone: America/Los_Angeles
              weeklyWindows:
                - startTime:
                    hours: '12'
                    minutes: '00'
                  endTime:
                    hours: '13'
                    minutes: '00'
Copy

Clouddeploy Deploy Policy Full

import * as pulumi from "@pulumi/pulumi";
import * as gcp from "@pulumi/gcp";

const f_deploy_policy = new gcp.clouddeploy.DeployPolicy("f-deploy-policy", {
    name: "cd-policy",
    location: "us-central1",
    annotations: {
        my_first_annotation: "example-annotation-1",
        my_second_annotation: "example-annotation-2",
    },
    labels: {
        my_first_label: "example-label-1",
        my_second_label: "example-label-2",
    },
    description: "policy resource",
    selectors: [
        {
            deliveryPipeline: {
                id: "cd-pipeline",
                labels: {
                    foo: "bar",
                },
            },
        },
        {
            target: {
                id: "dev",
                labels: {
                    foo: "bar",
                },
            },
        },
    ],
    suspended: true,
    rules: [
        {
            rolloutRestriction: {
                id: "rule",
                timeWindows: {
                    timeZone: "America/Los_Angeles",
                    weeklyWindows: [{
                        startTime: {
                            hours: 12,
                            minutes: 0,
                            seconds: 0,
                            nanos: 0,
                        },
                        endTime: {
                            hours: 13,
                            minutes: 0,
                            seconds: 0,
                            nanos: 0,
                        },
                    }],
                },
            },
        },
        {
            rolloutRestriction: {
                id: "rule2",
                invokers: ["USER"],
                actions: ["CREATE"],
                timeWindows: {
                    timeZone: "America/Los_Angeles",
                    weeklyWindows: [{
                        startTime: {
                            hours: 13,
                            minutes: 0,
                            seconds: 0,
                            nanos: 0,
                        },
                        endTime: {
                            hours: 14,
                            minutes: 0,
                            seconds: 0,
                            nanos: 0,
                        },
                        daysOfWeeks: ["MONDAY"],
                    }],
                    oneTimeWindows: [{
                        startTime: {
                            hours: 15,
                            minutes: 0,
                            seconds: 0,
                            nanos: 0,
                        },
                        endTime: {
                            hours: 16,
                            minutes: 0,
                            seconds: 0,
                            nanos: 0,
                        },
                        startDate: {
                            year: 2019,
                            month: 1,
                            day: 1,
                        },
                        endDate: {
                            year: 2019,
                            month: 12,
                            day: 31,
                        },
                    }],
                },
            },
        },
    ],
});
Copy
import pulumi
import pulumi_gcp as gcp

f_deploy_policy = gcp.clouddeploy.DeployPolicy("f-deploy-policy",
    name="cd-policy",
    location="us-central1",
    annotations={
        "my_first_annotation": "example-annotation-1",
        "my_second_annotation": "example-annotation-2",
    },
    labels={
        "my_first_label": "example-label-1",
        "my_second_label": "example-label-2",
    },
    description="policy resource",
    selectors=[
        {
            "delivery_pipeline": {
                "id": "cd-pipeline",
                "labels": {
                    "foo": "bar",
                },
            },
        },
        {
            "target": {
                "id": "dev",
                "labels": {
                    "foo": "bar",
                },
            },
        },
    ],
    suspended=True,
    rules=[
        {
            "rollout_restriction": {
                "id": "rule",
                "time_windows": {
                    "time_zone": "America/Los_Angeles",
                    "weekly_windows": [{
                        "start_time": {
                            "hours": 12,
                            "minutes": 0,
                            "seconds": 0,
                            "nanos": 0,
                        },
                        "end_time": {
                            "hours": 13,
                            "minutes": 0,
                            "seconds": 0,
                            "nanos": 0,
                        },
                    }],
                },
            },
        },
        {
            "rollout_restriction": {
                "id": "rule2",
                "invokers": ["USER"],
                "actions": ["CREATE"],
                "time_windows": {
                    "time_zone": "America/Los_Angeles",
                    "weekly_windows": [{
                        "start_time": {
                            "hours": 13,
                            "minutes": 0,
                            "seconds": 0,
                            "nanos": 0,
                        },
                        "end_time": {
                            "hours": 14,
                            "minutes": 0,
                            "seconds": 0,
                            "nanos": 0,
                        },
                        "days_of_weeks": ["MONDAY"],
                    }],
                    "one_time_windows": [{
                        "start_time": {
                            "hours": 15,
                            "minutes": 0,
                            "seconds": 0,
                            "nanos": 0,
                        },
                        "end_time": {
                            "hours": 16,
                            "minutes": 0,
                            "seconds": 0,
                            "nanos": 0,
                        },
                        "start_date": {
                            "year": 2019,
                            "month": 1,
                            "day": 1,
                        },
                        "end_date": {
                            "year": 2019,
                            "month": 12,
                            "day": 31,
                        },
                    }],
                },
            },
        },
    ])
Copy
package main

import (
	"github.com/pulumi/pulumi-gcp/sdk/v8/go/gcp/clouddeploy"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := clouddeploy.NewDeployPolicy(ctx, "f-deploy-policy", &clouddeploy.DeployPolicyArgs{
			Name:     pulumi.String("cd-policy"),
			Location: pulumi.String("us-central1"),
			Annotations: pulumi.StringMap{
				"my_first_annotation":  pulumi.String("example-annotation-1"),
				"my_second_annotation": pulumi.String("example-annotation-2"),
			},
			Labels: pulumi.StringMap{
				"my_first_label":  pulumi.String("example-label-1"),
				"my_second_label": pulumi.String("example-label-2"),
			},
			Description: pulumi.String("policy resource"),
			Selectors: clouddeploy.DeployPolicySelectorArray{
				&clouddeploy.DeployPolicySelectorArgs{
					DeliveryPipeline: &clouddeploy.DeployPolicySelectorDeliveryPipelineArgs{
						Id: pulumi.String("cd-pipeline"),
						Labels: pulumi.StringMap{
							"foo": pulumi.String("bar"),
						},
					},
				},
				&clouddeploy.DeployPolicySelectorArgs{
					Target: &clouddeploy.DeployPolicySelectorTargetArgs{
						Id: pulumi.String("dev"),
						Labels: pulumi.StringMap{
							"foo": pulumi.String("bar"),
						},
					},
				},
			},
			Suspended: pulumi.Bool(true),
			Rules: clouddeploy.DeployPolicyRuleArray{
				&clouddeploy.DeployPolicyRuleArgs{
					RolloutRestriction: &clouddeploy.DeployPolicyRuleRolloutRestrictionArgs{
						Id: pulumi.String("rule"),
						TimeWindows: &clouddeploy.DeployPolicyRuleRolloutRestrictionTimeWindowsArgs{
							TimeZone: pulumi.String("America/Los_Angeles"),
							WeeklyWindows: clouddeploy.DeployPolicyRuleRolloutRestrictionTimeWindowsWeeklyWindowArray{
								&clouddeploy.DeployPolicyRuleRolloutRestrictionTimeWindowsWeeklyWindowArgs{
									StartTime: &clouddeploy.DeployPolicyRuleRolloutRestrictionTimeWindowsWeeklyWindowStartTimeArgs{
										Hours:   pulumi.Int(12),
										Minutes: pulumi.Int(0),
										Seconds: pulumi.Int(0),
										Nanos:   pulumi.Int(0),
									},
									EndTime: &clouddeploy.DeployPolicyRuleRolloutRestrictionTimeWindowsWeeklyWindowEndTimeArgs{
										Hours:   pulumi.Int(13),
										Minutes: pulumi.Int(0),
										Seconds: pulumi.Int(0),
										Nanos:   pulumi.Int(0),
									},
								},
							},
						},
					},
				},
				&clouddeploy.DeployPolicyRuleArgs{
					RolloutRestriction: &clouddeploy.DeployPolicyRuleRolloutRestrictionArgs{
						Id: pulumi.String("rule2"),
						Invokers: pulumi.StringArray{
							pulumi.String("USER"),
						},
						Actions: pulumi.StringArray{
							pulumi.String("CREATE"),
						},
						TimeWindows: &clouddeploy.DeployPolicyRuleRolloutRestrictionTimeWindowsArgs{
							TimeZone: pulumi.String("America/Los_Angeles"),
							WeeklyWindows: clouddeploy.DeployPolicyRuleRolloutRestrictionTimeWindowsWeeklyWindowArray{
								&clouddeploy.DeployPolicyRuleRolloutRestrictionTimeWindowsWeeklyWindowArgs{
									StartTime: &clouddeploy.DeployPolicyRuleRolloutRestrictionTimeWindowsWeeklyWindowStartTimeArgs{
										Hours:   pulumi.Int(13),
										Minutes: pulumi.Int(0),
										Seconds: pulumi.Int(0),
										Nanos:   pulumi.Int(0),
									},
									EndTime: &clouddeploy.DeployPolicyRuleRolloutRestrictionTimeWindowsWeeklyWindowEndTimeArgs{
										Hours:   pulumi.Int(14),
										Minutes: pulumi.Int(0),
										Seconds: pulumi.Int(0),
										Nanos:   pulumi.Int(0),
									},
									DaysOfWeeks: pulumi.StringArray{
										pulumi.String("MONDAY"),
									},
								},
							},
							OneTimeWindows: clouddeploy.DeployPolicyRuleRolloutRestrictionTimeWindowsOneTimeWindowArray{
								&clouddeploy.DeployPolicyRuleRolloutRestrictionTimeWindowsOneTimeWindowArgs{
									StartTime: &clouddeploy.DeployPolicyRuleRolloutRestrictionTimeWindowsOneTimeWindowStartTimeArgs{
										Hours:   pulumi.Int(15),
										Minutes: pulumi.Int(0),
										Seconds: pulumi.Int(0),
										Nanos:   pulumi.Int(0),
									},
									EndTime: &clouddeploy.DeployPolicyRuleRolloutRestrictionTimeWindowsOneTimeWindowEndTimeArgs{
										Hours:   pulumi.Int(16),
										Minutes: pulumi.Int(0),
										Seconds: pulumi.Int(0),
										Nanos:   pulumi.Int(0),
									},
									StartDate: &clouddeploy.DeployPolicyRuleRolloutRestrictionTimeWindowsOneTimeWindowStartDateArgs{
										Year:  pulumi.Int(2019),
										Month: pulumi.Int(1),
										Day:   pulumi.Int(1),
									},
									EndDate: &clouddeploy.DeployPolicyRuleRolloutRestrictionTimeWindowsOneTimeWindowEndDateArgs{
										Year:  pulumi.Int(2019),
										Month: pulumi.Int(12),
										Day:   pulumi.Int(31),
									},
								},
							},
						},
					},
				},
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Gcp = Pulumi.Gcp;

return await Deployment.RunAsync(() => 
{
    var f_deploy_policy = new Gcp.CloudDeploy.DeployPolicy("f-deploy-policy", new()
    {
        Name = "cd-policy",
        Location = "us-central1",
        Annotations = 
        {
            { "my_first_annotation", "example-annotation-1" },
            { "my_second_annotation", "example-annotation-2" },
        },
        Labels = 
        {
            { "my_first_label", "example-label-1" },
            { "my_second_label", "example-label-2" },
        },
        Description = "policy resource",
        Selectors = new[]
        {
            new Gcp.CloudDeploy.Inputs.DeployPolicySelectorArgs
            {
                DeliveryPipeline = new Gcp.CloudDeploy.Inputs.DeployPolicySelectorDeliveryPipelineArgs
                {
                    Id = "cd-pipeline",
                    Labels = 
                    {
                        { "foo", "bar" },
                    },
                },
            },
            new Gcp.CloudDeploy.Inputs.DeployPolicySelectorArgs
            {
                Target = new Gcp.CloudDeploy.Inputs.DeployPolicySelectorTargetArgs
                {
                    Id = "dev",
                    Labels = 
                    {
                        { "foo", "bar" },
                    },
                },
            },
        },
        Suspended = true,
        Rules = new[]
        {
            new Gcp.CloudDeploy.Inputs.DeployPolicyRuleArgs
            {
                RolloutRestriction = new Gcp.CloudDeploy.Inputs.DeployPolicyRuleRolloutRestrictionArgs
                {
                    Id = "rule",
                    TimeWindows = new Gcp.CloudDeploy.Inputs.DeployPolicyRuleRolloutRestrictionTimeWindowsArgs
                    {
                        TimeZone = "America/Los_Angeles",
                        WeeklyWindows = new[]
                        {
                            new Gcp.CloudDeploy.Inputs.DeployPolicyRuleRolloutRestrictionTimeWindowsWeeklyWindowArgs
                            {
                                StartTime = new Gcp.CloudDeploy.Inputs.DeployPolicyRuleRolloutRestrictionTimeWindowsWeeklyWindowStartTimeArgs
                                {
                                    Hours = 12,
                                    Minutes = 0,
                                    Seconds = 0,
                                    Nanos = 0,
                                },
                                EndTime = new Gcp.CloudDeploy.Inputs.DeployPolicyRuleRolloutRestrictionTimeWindowsWeeklyWindowEndTimeArgs
                                {
                                    Hours = 13,
                                    Minutes = 0,
                                    Seconds = 0,
                                    Nanos = 0,
                                },
                            },
                        },
                    },
                },
            },
            new Gcp.CloudDeploy.Inputs.DeployPolicyRuleArgs
            {
                RolloutRestriction = new Gcp.CloudDeploy.Inputs.DeployPolicyRuleRolloutRestrictionArgs
                {
                    Id = "rule2",
                    Invokers = new[]
                    {
                        "USER",
                    },
                    Actions = new[]
                    {
                        "CREATE",
                    },
                    TimeWindows = new Gcp.CloudDeploy.Inputs.DeployPolicyRuleRolloutRestrictionTimeWindowsArgs
                    {
                        TimeZone = "America/Los_Angeles",
                        WeeklyWindows = new[]
                        {
                            new Gcp.CloudDeploy.Inputs.DeployPolicyRuleRolloutRestrictionTimeWindowsWeeklyWindowArgs
                            {
                                StartTime = new Gcp.CloudDeploy.Inputs.DeployPolicyRuleRolloutRestrictionTimeWindowsWeeklyWindowStartTimeArgs
                                {
                                    Hours = 13,
                                    Minutes = 0,
                                    Seconds = 0,
                                    Nanos = 0,
                                },
                                EndTime = new Gcp.CloudDeploy.Inputs.DeployPolicyRuleRolloutRestrictionTimeWindowsWeeklyWindowEndTimeArgs
                                {
                                    Hours = 14,
                                    Minutes = 0,
                                    Seconds = 0,
                                    Nanos = 0,
                                },
                                DaysOfWeeks = new[]
                                {
                                    "MONDAY",
                                },
                            },
                        },
                        OneTimeWindows = new[]
                        {
                            new Gcp.CloudDeploy.Inputs.DeployPolicyRuleRolloutRestrictionTimeWindowsOneTimeWindowArgs
                            {
                                StartTime = new Gcp.CloudDeploy.Inputs.DeployPolicyRuleRolloutRestrictionTimeWindowsOneTimeWindowStartTimeArgs
                                {
                                    Hours = 15,
                                    Minutes = 0,
                                    Seconds = 0,
                                    Nanos = 0,
                                },
                                EndTime = new Gcp.CloudDeploy.Inputs.DeployPolicyRuleRolloutRestrictionTimeWindowsOneTimeWindowEndTimeArgs
                                {
                                    Hours = 16,
                                    Minutes = 0,
                                    Seconds = 0,
                                    Nanos = 0,
                                },
                                StartDate = new Gcp.CloudDeploy.Inputs.DeployPolicyRuleRolloutRestrictionTimeWindowsOneTimeWindowStartDateArgs
                                {
                                    Year = 2019,
                                    Month = 1,
                                    Day = 1,
                                },
                                EndDate = new Gcp.CloudDeploy.Inputs.DeployPolicyRuleRolloutRestrictionTimeWindowsOneTimeWindowEndDateArgs
                                {
                                    Year = 2019,
                                    Month = 12,
                                    Day = 31,
                                },
                            },
                        },
                    },
                },
            },
        },
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.gcp.clouddeploy.DeployPolicy;
import com.pulumi.gcp.clouddeploy.DeployPolicyArgs;
import com.pulumi.gcp.clouddeploy.inputs.DeployPolicySelectorArgs;
import com.pulumi.gcp.clouddeploy.inputs.DeployPolicySelectorDeliveryPipelineArgs;
import com.pulumi.gcp.clouddeploy.inputs.DeployPolicySelectorTargetArgs;
import com.pulumi.gcp.clouddeploy.inputs.DeployPolicyRuleArgs;
import com.pulumi.gcp.clouddeploy.inputs.DeployPolicyRuleRolloutRestrictionArgs;
import com.pulumi.gcp.clouddeploy.inputs.DeployPolicyRuleRolloutRestrictionTimeWindowsArgs;
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 f_deploy_policy = new DeployPolicy("f-deploy-policy", DeployPolicyArgs.builder()
            .name("cd-policy")
            .location("us-central1")
            .annotations(Map.ofEntries(
                Map.entry("my_first_annotation", "example-annotation-1"),
                Map.entry("my_second_annotation", "example-annotation-2")
            ))
            .labels(Map.ofEntries(
                Map.entry("my_first_label", "example-label-1"),
                Map.entry("my_second_label", "example-label-2")
            ))
            .description("policy resource")
            .selectors(            
                DeployPolicySelectorArgs.builder()
                    .deliveryPipeline(DeployPolicySelectorDeliveryPipelineArgs.builder()
                        .id("cd-pipeline")
                        .labels(Map.of("foo", "bar"))
                        .build())
                    .build(),
                DeployPolicySelectorArgs.builder()
                    .target(DeployPolicySelectorTargetArgs.builder()
                        .id("dev")
                        .labels(Map.of("foo", "bar"))
                        .build())
                    .build())
            .suspended(true)
            .rules(            
                DeployPolicyRuleArgs.builder()
                    .rolloutRestriction(DeployPolicyRuleRolloutRestrictionArgs.builder()
                        .id("rule")
                        .timeWindows(DeployPolicyRuleRolloutRestrictionTimeWindowsArgs.builder()
                            .timeZone("America/Los_Angeles")
                            .weeklyWindows(DeployPolicyRuleRolloutRestrictionTimeWindowsWeeklyWindowArgs.builder()
                                .startTime(DeployPolicyRuleRolloutRestrictionTimeWindowsWeeklyWindowStartTimeArgs.builder()
                                    .hours(12)
                                    .minutes(0)
                                    .seconds(0)
                                    .nanos(0)
                                    .build())
                                .endTime(DeployPolicyRuleRolloutRestrictionTimeWindowsWeeklyWindowEndTimeArgs.builder()
                                    .hours(13)
                                    .minutes(0)
                                    .seconds(0)
                                    .nanos(0)
                                    .build())
                                .build())
                            .build())
                        .build())
                    .build(),
                DeployPolicyRuleArgs.builder()
                    .rolloutRestriction(DeployPolicyRuleRolloutRestrictionArgs.builder()
                        .id("rule2")
                        .invokers("USER")
                        .actions("CREATE")
                        .timeWindows(DeployPolicyRuleRolloutRestrictionTimeWindowsArgs.builder()
                            .timeZone("America/Los_Angeles")
                            .weeklyWindows(DeployPolicyRuleRolloutRestrictionTimeWindowsWeeklyWindowArgs.builder()
                                .startTime(DeployPolicyRuleRolloutRestrictionTimeWindowsWeeklyWindowStartTimeArgs.builder()
                                    .hours(13)
                                    .minutes(0)
                                    .seconds(0)
                                    .nanos(0)
                                    .build())
                                .endTime(DeployPolicyRuleRolloutRestrictionTimeWindowsWeeklyWindowEndTimeArgs.builder()
                                    .hours(14)
                                    .minutes(0)
                                    .seconds(0)
                                    .nanos(0)
                                    .build())
                                .daysOfWeeks("MONDAY")
                                .build())
                            .oneTimeWindows(DeployPolicyRuleRolloutRestrictionTimeWindowsOneTimeWindowArgs.builder()
                                .startTime(DeployPolicyRuleRolloutRestrictionTimeWindowsOneTimeWindowStartTimeArgs.builder()
                                    .hours(15)
                                    .minutes(0)
                                    .seconds(0)
                                    .nanos(0)
                                    .build())
                                .endTime(DeployPolicyRuleRolloutRestrictionTimeWindowsOneTimeWindowEndTimeArgs.builder()
                                    .hours(16)
                                    .minutes(0)
                                    .seconds(0)
                                    .nanos(0)
                                    .build())
                                .startDate(DeployPolicyRuleRolloutRestrictionTimeWindowsOneTimeWindowStartDateArgs.builder()
                                    .year(2019)
                                    .month(1)
                                    .day(1)
                                    .build())
                                .endDate(DeployPolicyRuleRolloutRestrictionTimeWindowsOneTimeWindowEndDateArgs.builder()
                                    .year(2019)
                                    .month(12)
                                    .day(31)
                                    .build())
                                .build())
                            .build())
                        .build())
                    .build())
            .build());

    }
}
Copy
resources:
  f-deploy-policy:
    type: gcp:clouddeploy:DeployPolicy
    properties:
      name: cd-policy
      location: us-central1
      annotations:
        my_first_annotation: example-annotation-1
        my_second_annotation: example-annotation-2
      labels:
        my_first_label: example-label-1
        my_second_label: example-label-2
      description: policy resource
      selectors:
        - deliveryPipeline:
            id: cd-pipeline
            labels:
              foo: bar
        - target:
            id: dev
            labels:
              foo: bar
      suspended: true
      rules:
        - rolloutRestriction:
            id: rule
            timeWindows:
              timeZone: America/Los_Angeles
              weeklyWindows:
                - startTime:
                    hours: '12'
                    minutes: '00'
                    seconds: '00'
                    nanos: '00'
                  endTime:
                    hours: '13'
                    minutes: '00'
                    seconds: '00'
                    nanos: '00'
        - rolloutRestriction:
            id: rule2
            invokers:
              - USER
            actions:
              - CREATE
            timeWindows:
              timeZone: America/Los_Angeles
              weeklyWindows:
                - startTime:
                    hours: '13'
                    minutes: '00'
                    seconds: '00'
                    nanos: '00'
                  endTime:
                    hours: '14'
                    minutes: '00'
                    seconds: '00'
                    nanos: '00'
                  daysOfWeeks:
                    - MONDAY
              oneTimeWindows:
                - startTime:
                    hours: '15'
                    minutes: '00'
                    seconds: '00'
                    nanos: '00'
                  endTime:
                    hours: '16'
                    minutes: '00'
                    seconds: '00'
                    nanos: '00'
                  startDate:
                    year: '2019'
                    month: '01'
                    day: '01'
                  endDate:
                    year: '2019'
                    month: '12'
                    day: '31'
Copy

Create DeployPolicy Resource

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

Constructor syntax

new DeployPolicy(name: string, args: DeployPolicyArgs, opts?: CustomResourceOptions);
@overload
def DeployPolicy(resource_name: str,
                 args: DeployPolicyArgs,
                 opts: Optional[ResourceOptions] = None)

@overload
def DeployPolicy(resource_name: str,
                 opts: Optional[ResourceOptions] = None,
                 location: Optional[str] = None,
                 rules: Optional[Sequence[DeployPolicyRuleArgs]] = None,
                 selectors: Optional[Sequence[DeployPolicySelectorArgs]] = None,
                 annotations: Optional[Mapping[str, str]] = None,
                 description: Optional[str] = None,
                 labels: Optional[Mapping[str, str]] = None,
                 name: Optional[str] = None,
                 project: Optional[str] = None,
                 suspended: Optional[bool] = None)
func NewDeployPolicy(ctx *Context, name string, args DeployPolicyArgs, opts ...ResourceOption) (*DeployPolicy, error)
public DeployPolicy(string name, DeployPolicyArgs args, CustomResourceOptions? opts = null)
public DeployPolicy(String name, DeployPolicyArgs args)
public DeployPolicy(String name, DeployPolicyArgs args, CustomResourceOptions options)
type: gcp:clouddeploy:DeployPolicy
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

Parameters

name This property is required. string
The unique name of the resource.
args This property is required. DeployPolicyArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args This property is required. DeployPolicyArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name This property is required. string
The unique name of the resource.
args This property is required. DeployPolicyArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args This property is required. DeployPolicyArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. DeployPolicyArgs
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 deployPolicyResource = new Gcp.CloudDeploy.DeployPolicy("deployPolicyResource", new()
{
    Location = "string",
    Rules = new[]
    {
        new Gcp.CloudDeploy.Inputs.DeployPolicyRuleArgs
        {
            RolloutRestriction = new Gcp.CloudDeploy.Inputs.DeployPolicyRuleRolloutRestrictionArgs
            {
                Id = "string",
                Actions = new[]
                {
                    "string",
                },
                Invokers = new[]
                {
                    "string",
                },
                TimeWindows = new Gcp.CloudDeploy.Inputs.DeployPolicyRuleRolloutRestrictionTimeWindowsArgs
                {
                    TimeZone = "string",
                    OneTimeWindows = new[]
                    {
                        new Gcp.CloudDeploy.Inputs.DeployPolicyRuleRolloutRestrictionTimeWindowsOneTimeWindowArgs
                        {
                            EndDate = new Gcp.CloudDeploy.Inputs.DeployPolicyRuleRolloutRestrictionTimeWindowsOneTimeWindowEndDateArgs
                            {
                                Day = 0,
                                Month = 0,
                                Year = 0,
                            },
                            EndTime = new Gcp.CloudDeploy.Inputs.DeployPolicyRuleRolloutRestrictionTimeWindowsOneTimeWindowEndTimeArgs
                            {
                                Hours = 0,
                                Minutes = 0,
                                Nanos = 0,
                                Seconds = 0,
                            },
                            StartDate = new Gcp.CloudDeploy.Inputs.DeployPolicyRuleRolloutRestrictionTimeWindowsOneTimeWindowStartDateArgs
                            {
                                Day = 0,
                                Month = 0,
                                Year = 0,
                            },
                            StartTime = new Gcp.CloudDeploy.Inputs.DeployPolicyRuleRolloutRestrictionTimeWindowsOneTimeWindowStartTimeArgs
                            {
                                Hours = 0,
                                Minutes = 0,
                                Nanos = 0,
                                Seconds = 0,
                            },
                        },
                    },
                    WeeklyWindows = new[]
                    {
                        new Gcp.CloudDeploy.Inputs.DeployPolicyRuleRolloutRestrictionTimeWindowsWeeklyWindowArgs
                        {
                            DaysOfWeeks = new[]
                            {
                                "string",
                            },
                            EndTime = new Gcp.CloudDeploy.Inputs.DeployPolicyRuleRolloutRestrictionTimeWindowsWeeklyWindowEndTimeArgs
                            {
                                Hours = 0,
                                Minutes = 0,
                                Nanos = 0,
                                Seconds = 0,
                            },
                            StartTime = new Gcp.CloudDeploy.Inputs.DeployPolicyRuleRolloutRestrictionTimeWindowsWeeklyWindowStartTimeArgs
                            {
                                Hours = 0,
                                Minutes = 0,
                                Nanos = 0,
                                Seconds = 0,
                            },
                        },
                    },
                },
            },
        },
    },
    Selectors = new[]
    {
        new Gcp.CloudDeploy.Inputs.DeployPolicySelectorArgs
        {
            DeliveryPipeline = new Gcp.CloudDeploy.Inputs.DeployPolicySelectorDeliveryPipelineArgs
            {
                Id = "string",
                Labels = 
                {
                    { "string", "string" },
                },
            },
            Target = new Gcp.CloudDeploy.Inputs.DeployPolicySelectorTargetArgs
            {
                Id = "string",
                Labels = 
                {
                    { "string", "string" },
                },
            },
        },
    },
    Annotations = 
    {
        { "string", "string" },
    },
    Description = "string",
    Labels = 
    {
        { "string", "string" },
    },
    Name = "string",
    Project = "string",
    Suspended = false,
});
Copy
example, err := clouddeploy.NewDeployPolicy(ctx, "deployPolicyResource", &clouddeploy.DeployPolicyArgs{
	Location: pulumi.String("string"),
	Rules: clouddeploy.DeployPolicyRuleArray{
		&clouddeploy.DeployPolicyRuleArgs{
			RolloutRestriction: &clouddeploy.DeployPolicyRuleRolloutRestrictionArgs{
				Id: pulumi.String("string"),
				Actions: pulumi.StringArray{
					pulumi.String("string"),
				},
				Invokers: pulumi.StringArray{
					pulumi.String("string"),
				},
				TimeWindows: &clouddeploy.DeployPolicyRuleRolloutRestrictionTimeWindowsArgs{
					TimeZone: pulumi.String("string"),
					OneTimeWindows: clouddeploy.DeployPolicyRuleRolloutRestrictionTimeWindowsOneTimeWindowArray{
						&clouddeploy.DeployPolicyRuleRolloutRestrictionTimeWindowsOneTimeWindowArgs{
							EndDate: &clouddeploy.DeployPolicyRuleRolloutRestrictionTimeWindowsOneTimeWindowEndDateArgs{
								Day:   pulumi.Int(0),
								Month: pulumi.Int(0),
								Year:  pulumi.Int(0),
							},
							EndTime: &clouddeploy.DeployPolicyRuleRolloutRestrictionTimeWindowsOneTimeWindowEndTimeArgs{
								Hours:   pulumi.Int(0),
								Minutes: pulumi.Int(0),
								Nanos:   pulumi.Int(0),
								Seconds: pulumi.Int(0),
							},
							StartDate: &clouddeploy.DeployPolicyRuleRolloutRestrictionTimeWindowsOneTimeWindowStartDateArgs{
								Day:   pulumi.Int(0),
								Month: pulumi.Int(0),
								Year:  pulumi.Int(0),
							},
							StartTime: &clouddeploy.DeployPolicyRuleRolloutRestrictionTimeWindowsOneTimeWindowStartTimeArgs{
								Hours:   pulumi.Int(0),
								Minutes: pulumi.Int(0),
								Nanos:   pulumi.Int(0),
								Seconds: pulumi.Int(0),
							},
						},
					},
					WeeklyWindows: clouddeploy.DeployPolicyRuleRolloutRestrictionTimeWindowsWeeklyWindowArray{
						&clouddeploy.DeployPolicyRuleRolloutRestrictionTimeWindowsWeeklyWindowArgs{
							DaysOfWeeks: pulumi.StringArray{
								pulumi.String("string"),
							},
							EndTime: &clouddeploy.DeployPolicyRuleRolloutRestrictionTimeWindowsWeeklyWindowEndTimeArgs{
								Hours:   pulumi.Int(0),
								Minutes: pulumi.Int(0),
								Nanos:   pulumi.Int(0),
								Seconds: pulumi.Int(0),
							},
							StartTime: &clouddeploy.DeployPolicyRuleRolloutRestrictionTimeWindowsWeeklyWindowStartTimeArgs{
								Hours:   pulumi.Int(0),
								Minutes: pulumi.Int(0),
								Nanos:   pulumi.Int(0),
								Seconds: pulumi.Int(0),
							},
						},
					},
				},
			},
		},
	},
	Selectors: clouddeploy.DeployPolicySelectorArray{
		&clouddeploy.DeployPolicySelectorArgs{
			DeliveryPipeline: &clouddeploy.DeployPolicySelectorDeliveryPipelineArgs{
				Id: pulumi.String("string"),
				Labels: pulumi.StringMap{
					"string": pulumi.String("string"),
				},
			},
			Target: &clouddeploy.DeployPolicySelectorTargetArgs{
				Id: pulumi.String("string"),
				Labels: pulumi.StringMap{
					"string": pulumi.String("string"),
				},
			},
		},
	},
	Annotations: pulumi.StringMap{
		"string": pulumi.String("string"),
	},
	Description: pulumi.String("string"),
	Labels: pulumi.StringMap{
		"string": pulumi.String("string"),
	},
	Name:      pulumi.String("string"),
	Project:   pulumi.String("string"),
	Suspended: pulumi.Bool(false),
})
Copy
var deployPolicyResource = new DeployPolicy("deployPolicyResource", DeployPolicyArgs.builder()
    .location("string")
    .rules(DeployPolicyRuleArgs.builder()
        .rolloutRestriction(DeployPolicyRuleRolloutRestrictionArgs.builder()
            .id("string")
            .actions("string")
            .invokers("string")
            .timeWindows(DeployPolicyRuleRolloutRestrictionTimeWindowsArgs.builder()
                .timeZone("string")
                .oneTimeWindows(DeployPolicyRuleRolloutRestrictionTimeWindowsOneTimeWindowArgs.builder()
                    .endDate(DeployPolicyRuleRolloutRestrictionTimeWindowsOneTimeWindowEndDateArgs.builder()
                        .day(0)
                        .month(0)
                        .year(0)
                        .build())
                    .endTime(DeployPolicyRuleRolloutRestrictionTimeWindowsOneTimeWindowEndTimeArgs.builder()
                        .hours(0)
                        .minutes(0)
                        .nanos(0)
                        .seconds(0)
                        .build())
                    .startDate(DeployPolicyRuleRolloutRestrictionTimeWindowsOneTimeWindowStartDateArgs.builder()
                        .day(0)
                        .month(0)
                        .year(0)
                        .build())
                    .startTime(DeployPolicyRuleRolloutRestrictionTimeWindowsOneTimeWindowStartTimeArgs.builder()
                        .hours(0)
                        .minutes(0)
                        .nanos(0)
                        .seconds(0)
                        .build())
                    .build())
                .weeklyWindows(DeployPolicyRuleRolloutRestrictionTimeWindowsWeeklyWindowArgs.builder()
                    .daysOfWeeks("string")
                    .endTime(DeployPolicyRuleRolloutRestrictionTimeWindowsWeeklyWindowEndTimeArgs.builder()
                        .hours(0)
                        .minutes(0)
                        .nanos(0)
                        .seconds(0)
                        .build())
                    .startTime(DeployPolicyRuleRolloutRestrictionTimeWindowsWeeklyWindowStartTimeArgs.builder()
                        .hours(0)
                        .minutes(0)
                        .nanos(0)
                        .seconds(0)
                        .build())
                    .build())
                .build())
            .build())
        .build())
    .selectors(DeployPolicySelectorArgs.builder()
        .deliveryPipeline(DeployPolicySelectorDeliveryPipelineArgs.builder()
            .id("string")
            .labels(Map.of("string", "string"))
            .build())
        .target(DeployPolicySelectorTargetArgs.builder()
            .id("string")
            .labels(Map.of("string", "string"))
            .build())
        .build())
    .annotations(Map.of("string", "string"))
    .description("string")
    .labels(Map.of("string", "string"))
    .name("string")
    .project("string")
    .suspended(false)
    .build());
Copy
deploy_policy_resource = gcp.clouddeploy.DeployPolicy("deployPolicyResource",
    location="string",
    rules=[{
        "rollout_restriction": {
            "id": "string",
            "actions": ["string"],
            "invokers": ["string"],
            "time_windows": {
                "time_zone": "string",
                "one_time_windows": [{
                    "end_date": {
                        "day": 0,
                        "month": 0,
                        "year": 0,
                    },
                    "end_time": {
                        "hours": 0,
                        "minutes": 0,
                        "nanos": 0,
                        "seconds": 0,
                    },
                    "start_date": {
                        "day": 0,
                        "month": 0,
                        "year": 0,
                    },
                    "start_time": {
                        "hours": 0,
                        "minutes": 0,
                        "nanos": 0,
                        "seconds": 0,
                    },
                }],
                "weekly_windows": [{
                    "days_of_weeks": ["string"],
                    "end_time": {
                        "hours": 0,
                        "minutes": 0,
                        "nanos": 0,
                        "seconds": 0,
                    },
                    "start_time": {
                        "hours": 0,
                        "minutes": 0,
                        "nanos": 0,
                        "seconds": 0,
                    },
                }],
            },
        },
    }],
    selectors=[{
        "delivery_pipeline": {
            "id": "string",
            "labels": {
                "string": "string",
            },
        },
        "target": {
            "id": "string",
            "labels": {
                "string": "string",
            },
        },
    }],
    annotations={
        "string": "string",
    },
    description="string",
    labels={
        "string": "string",
    },
    name="string",
    project="string",
    suspended=False)
Copy
const deployPolicyResource = new gcp.clouddeploy.DeployPolicy("deployPolicyResource", {
    location: "string",
    rules: [{
        rolloutRestriction: {
            id: "string",
            actions: ["string"],
            invokers: ["string"],
            timeWindows: {
                timeZone: "string",
                oneTimeWindows: [{
                    endDate: {
                        day: 0,
                        month: 0,
                        year: 0,
                    },
                    endTime: {
                        hours: 0,
                        minutes: 0,
                        nanos: 0,
                        seconds: 0,
                    },
                    startDate: {
                        day: 0,
                        month: 0,
                        year: 0,
                    },
                    startTime: {
                        hours: 0,
                        minutes: 0,
                        nanos: 0,
                        seconds: 0,
                    },
                }],
                weeklyWindows: [{
                    daysOfWeeks: ["string"],
                    endTime: {
                        hours: 0,
                        minutes: 0,
                        nanos: 0,
                        seconds: 0,
                    },
                    startTime: {
                        hours: 0,
                        minutes: 0,
                        nanos: 0,
                        seconds: 0,
                    },
                }],
            },
        },
    }],
    selectors: [{
        deliveryPipeline: {
            id: "string",
            labels: {
                string: "string",
            },
        },
        target: {
            id: "string",
            labels: {
                string: "string",
            },
        },
    }],
    annotations: {
        string: "string",
    },
    description: "string",
    labels: {
        string: "string",
    },
    name: "string",
    project: "string",
    suspended: false,
});
Copy
type: gcp:clouddeploy:DeployPolicy
properties:
    annotations:
        string: string
    description: string
    labels:
        string: string
    location: string
    name: string
    project: string
    rules:
        - rolloutRestriction:
            actions:
                - string
            id: string
            invokers:
                - string
            timeWindows:
                oneTimeWindows:
                    - endDate:
                        day: 0
                        month: 0
                        year: 0
                      endTime:
                        hours: 0
                        minutes: 0
                        nanos: 0
                        seconds: 0
                      startDate:
                        day: 0
                        month: 0
                        year: 0
                      startTime:
                        hours: 0
                        minutes: 0
                        nanos: 0
                        seconds: 0
                timeZone: string
                weeklyWindows:
                    - daysOfWeeks:
                        - string
                      endTime:
                        hours: 0
                        minutes: 0
                        nanos: 0
                        seconds: 0
                      startTime:
                        hours: 0
                        minutes: 0
                        nanos: 0
                        seconds: 0
    selectors:
        - deliveryPipeline:
            id: string
            labels:
                string: string
          target:
            id: string
            labels:
                string: string
    suspended: false
Copy

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

Location
This property is required.
Changes to this property will trigger replacement.
string
The location for the resource
Rules This property is required. List<DeployPolicyRule>
Required. Rules to apply. At least one rule must be present. Structure is documented below.
Selectors This property is required. List<DeployPolicySelector>
Required. Selected resources to which the policy will be applied. At least one selector is required. If one selector matches the resource the policy applies. For example, if there are two selectors and the action being attempted matches one of them, the policy will apply to that action. Structure is documented below.
Annotations Dictionary<string, string>
Optional. User annotations. These attributes can only be set and used by the user, and not by Cloud Deploy. Annotations must meet the following constraints: * Annotations are key/value pairs. * Valid annotation keys have two segments: an optional prefix and name, separated by a slash ('/'). * The name segment is required and must be 63 characters or less, beginning and ending with an alphanumeric character ('[a-z0-9A-Z]') with dashes ('-'), underscores ('_'), dots ('.'), and alphanumerics between. * The prefix is optional. If specified, the prefix must be a DNS subdomain: a series of DNS labels separated by dots('.'), not longer than 253 characters in total, followed by a slash ('/'). See https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations/#syntax-and-character-set for more details. Note: This field is non-authoritative, and will only manage the annotations present in your configuration. Please refer to the field 'effective_annotations' for all of the annotations present on the resource.
Description string
Optional. Description of the 'DeployPolicy'. Max length is 255 characters.
Labels Dictionary<string, string>
Optional. Labels are attributes that can be set and used by both the user and by Cloud Deploy. Labels must meet the following constraints: * Keys and values can contain only lowercase letters, numeric characters, underscores, and dashes. * All characters must use UTF-8 encoding, and international characters are allowed. * Keys must start with a lowercase letter or international character. * Each resource is limited to a maximum of 64 labels. Both keys and values are additionally constrained to be <= 63 characters. Note: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field 'effective_labels' for all of the labels present on the resource.
Name Changes to this property will trigger replacement. string
Name of the DeployPolicy.
Project Changes to this property will trigger replacement. string
Suspended bool
Optional. When suspended, the policy will not prevent actions from occurring, even if the action violates the policy.
Location
This property is required.
Changes to this property will trigger replacement.
string
The location for the resource
Rules This property is required. []DeployPolicyRuleArgs
Required. Rules to apply. At least one rule must be present. Structure is documented below.
Selectors This property is required. []DeployPolicySelectorArgs
Required. Selected resources to which the policy will be applied. At least one selector is required. If one selector matches the resource the policy applies. For example, if there are two selectors and the action being attempted matches one of them, the policy will apply to that action. Structure is documented below.
Annotations map[string]string
Optional. User annotations. These attributes can only be set and used by the user, and not by Cloud Deploy. Annotations must meet the following constraints: * Annotations are key/value pairs. * Valid annotation keys have two segments: an optional prefix and name, separated by a slash ('/'). * The name segment is required and must be 63 characters or less, beginning and ending with an alphanumeric character ('[a-z0-9A-Z]') with dashes ('-'), underscores ('_'), dots ('.'), and alphanumerics between. * The prefix is optional. If specified, the prefix must be a DNS subdomain: a series of DNS labels separated by dots('.'), not longer than 253 characters in total, followed by a slash ('/'). See https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations/#syntax-and-character-set for more details. Note: This field is non-authoritative, and will only manage the annotations present in your configuration. Please refer to the field 'effective_annotations' for all of the annotations present on the resource.
Description string
Optional. Description of the 'DeployPolicy'. Max length is 255 characters.
Labels map[string]string
Optional. Labels are attributes that can be set and used by both the user and by Cloud Deploy. Labels must meet the following constraints: * Keys and values can contain only lowercase letters, numeric characters, underscores, and dashes. * All characters must use UTF-8 encoding, and international characters are allowed. * Keys must start with a lowercase letter or international character. * Each resource is limited to a maximum of 64 labels. Both keys and values are additionally constrained to be <= 63 characters. Note: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field 'effective_labels' for all of the labels present on the resource.
Name Changes to this property will trigger replacement. string
Name of the DeployPolicy.
Project Changes to this property will trigger replacement. string
Suspended bool
Optional. When suspended, the policy will not prevent actions from occurring, even if the action violates the policy.
location
This property is required.
Changes to this property will trigger replacement.
String
The location for the resource
rules This property is required. List<DeployPolicyRule>
Required. Rules to apply. At least one rule must be present. Structure is documented below.
selectors This property is required. List<DeployPolicySelector>
Required. Selected resources to which the policy will be applied. At least one selector is required. If one selector matches the resource the policy applies. For example, if there are two selectors and the action being attempted matches one of them, the policy will apply to that action. Structure is documented below.
annotations Map<String,String>
Optional. User annotations. These attributes can only be set and used by the user, and not by Cloud Deploy. Annotations must meet the following constraints: * Annotations are key/value pairs. * Valid annotation keys have two segments: an optional prefix and name, separated by a slash ('/'). * The name segment is required and must be 63 characters or less, beginning and ending with an alphanumeric character ('[a-z0-9A-Z]') with dashes ('-'), underscores ('_'), dots ('.'), and alphanumerics between. * The prefix is optional. If specified, the prefix must be a DNS subdomain: a series of DNS labels separated by dots('.'), not longer than 253 characters in total, followed by a slash ('/'). See https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations/#syntax-and-character-set for more details. Note: This field is non-authoritative, and will only manage the annotations present in your configuration. Please refer to the field 'effective_annotations' for all of the annotations present on the resource.
description String
Optional. Description of the 'DeployPolicy'. Max length is 255 characters.
labels Map<String,String>
Optional. Labels are attributes that can be set and used by both the user and by Cloud Deploy. Labels must meet the following constraints: * Keys and values can contain only lowercase letters, numeric characters, underscores, and dashes. * All characters must use UTF-8 encoding, and international characters are allowed. * Keys must start with a lowercase letter or international character. * Each resource is limited to a maximum of 64 labels. Both keys and values are additionally constrained to be <= 63 characters. Note: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field 'effective_labels' for all of the labels present on the resource.
name Changes to this property will trigger replacement. String
Name of the DeployPolicy.
project Changes to this property will trigger replacement. String
suspended Boolean
Optional. When suspended, the policy will not prevent actions from occurring, even if the action violates the policy.
location
This property is required.
Changes to this property will trigger replacement.
string
The location for the resource
rules This property is required. DeployPolicyRule[]
Required. Rules to apply. At least one rule must be present. Structure is documented below.
selectors This property is required. DeployPolicySelector[]
Required. Selected resources to which the policy will be applied. At least one selector is required. If one selector matches the resource the policy applies. For example, if there are two selectors and the action being attempted matches one of them, the policy will apply to that action. Structure is documented below.
annotations {[key: string]: string}
Optional. User annotations. These attributes can only be set and used by the user, and not by Cloud Deploy. Annotations must meet the following constraints: * Annotations are key/value pairs. * Valid annotation keys have two segments: an optional prefix and name, separated by a slash ('/'). * The name segment is required and must be 63 characters or less, beginning and ending with an alphanumeric character ('[a-z0-9A-Z]') with dashes ('-'), underscores ('_'), dots ('.'), and alphanumerics between. * The prefix is optional. If specified, the prefix must be a DNS subdomain: a series of DNS labels separated by dots('.'), not longer than 253 characters in total, followed by a slash ('/'). See https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations/#syntax-and-character-set for more details. Note: This field is non-authoritative, and will only manage the annotations present in your configuration. Please refer to the field 'effective_annotations' for all of the annotations present on the resource.
description string
Optional. Description of the 'DeployPolicy'. Max length is 255 characters.
labels {[key: string]: string}
Optional. Labels are attributes that can be set and used by both the user and by Cloud Deploy. Labels must meet the following constraints: * Keys and values can contain only lowercase letters, numeric characters, underscores, and dashes. * All characters must use UTF-8 encoding, and international characters are allowed. * Keys must start with a lowercase letter or international character. * Each resource is limited to a maximum of 64 labels. Both keys and values are additionally constrained to be <= 63 characters. Note: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field 'effective_labels' for all of the labels present on the resource.
name Changes to this property will trigger replacement. string
Name of the DeployPolicy.
project Changes to this property will trigger replacement. string
suspended boolean
Optional. When suspended, the policy will not prevent actions from occurring, even if the action violates the policy.
location
This property is required.
Changes to this property will trigger replacement.
str
The location for the resource
rules This property is required. Sequence[DeployPolicyRuleArgs]
Required. Rules to apply. At least one rule must be present. Structure is documented below.
selectors This property is required. Sequence[DeployPolicySelectorArgs]
Required. Selected resources to which the policy will be applied. At least one selector is required. If one selector matches the resource the policy applies. For example, if there are two selectors and the action being attempted matches one of them, the policy will apply to that action. Structure is documented below.
annotations Mapping[str, str]
Optional. User annotations. These attributes can only be set and used by the user, and not by Cloud Deploy. Annotations must meet the following constraints: * Annotations are key/value pairs. * Valid annotation keys have two segments: an optional prefix and name, separated by a slash ('/'). * The name segment is required and must be 63 characters or less, beginning and ending with an alphanumeric character ('[a-z0-9A-Z]') with dashes ('-'), underscores ('_'), dots ('.'), and alphanumerics between. * The prefix is optional. If specified, the prefix must be a DNS subdomain: a series of DNS labels separated by dots('.'), not longer than 253 characters in total, followed by a slash ('/'). See https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations/#syntax-and-character-set for more details. Note: This field is non-authoritative, and will only manage the annotations present in your configuration. Please refer to the field 'effective_annotations' for all of the annotations present on the resource.
description str
Optional. Description of the 'DeployPolicy'. Max length is 255 characters.
labels Mapping[str, str]
Optional. Labels are attributes that can be set and used by both the user and by Cloud Deploy. Labels must meet the following constraints: * Keys and values can contain only lowercase letters, numeric characters, underscores, and dashes. * All characters must use UTF-8 encoding, and international characters are allowed. * Keys must start with a lowercase letter or international character. * Each resource is limited to a maximum of 64 labels. Both keys and values are additionally constrained to be <= 63 characters. Note: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field 'effective_labels' for all of the labels present on the resource.
name Changes to this property will trigger replacement. str
Name of the DeployPolicy.
project Changes to this property will trigger replacement. str
suspended bool
Optional. When suspended, the policy will not prevent actions from occurring, even if the action violates the policy.
location
This property is required.
Changes to this property will trigger replacement.
String
The location for the resource
rules This property is required. List<Property Map>
Required. Rules to apply. At least one rule must be present. Structure is documented below.
selectors This property is required. List<Property Map>
Required. Selected resources to which the policy will be applied. At least one selector is required. If one selector matches the resource the policy applies. For example, if there are two selectors and the action being attempted matches one of them, the policy will apply to that action. Structure is documented below.
annotations Map<String>
Optional. User annotations. These attributes can only be set and used by the user, and not by Cloud Deploy. Annotations must meet the following constraints: * Annotations are key/value pairs. * Valid annotation keys have two segments: an optional prefix and name, separated by a slash ('/'). * The name segment is required and must be 63 characters or less, beginning and ending with an alphanumeric character ('[a-z0-9A-Z]') with dashes ('-'), underscores ('_'), dots ('.'), and alphanumerics between. * The prefix is optional. If specified, the prefix must be a DNS subdomain: a series of DNS labels separated by dots('.'), not longer than 253 characters in total, followed by a slash ('/'). See https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations/#syntax-and-character-set for more details. Note: This field is non-authoritative, and will only manage the annotations present in your configuration. Please refer to the field 'effective_annotations' for all of the annotations present on the resource.
description String
Optional. Description of the 'DeployPolicy'. Max length is 255 characters.
labels Map<String>
Optional. Labels are attributes that can be set and used by both the user and by Cloud Deploy. Labels must meet the following constraints: * Keys and values can contain only lowercase letters, numeric characters, underscores, and dashes. * All characters must use UTF-8 encoding, and international characters are allowed. * Keys must start with a lowercase letter or international character. * Each resource is limited to a maximum of 64 labels. Both keys and values are additionally constrained to be <= 63 characters. Note: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field 'effective_labels' for all of the labels present on the resource.
name Changes to this property will trigger replacement. String
Name of the DeployPolicy.
project Changes to this property will trigger replacement. String
suspended Boolean
Optional. When suspended, the policy will not prevent actions from occurring, even if the action violates the policy.

Outputs

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

CreateTime string
Output only. Time at which the DeployPolicy was created.
EffectiveAnnotations Dictionary<string, string>
EffectiveLabels Dictionary<string, string>
All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
Etag string
Optional. The weak etag of the DeployPolicy resource. This checksum is computed by the server based on the value of other fields, and may be sent on update and delete requests to ensure the client has an up-to-date value before proceeding.
Id string
The provider-assigned unique ID for this managed resource.
PulumiLabels Dictionary<string, string>
The combination of labels configured directly on the resource and default labels configured on the provider.
Uid string
Output only. Unique identifier of the DeployPolicy.
UpdateTime string
Output only. Time at which the DeployPolicy was updated.
CreateTime string
Output only. Time at which the DeployPolicy was created.
EffectiveAnnotations map[string]string
EffectiveLabels map[string]string
All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
Etag string
Optional. The weak etag of the DeployPolicy resource. This checksum is computed by the server based on the value of other fields, and may be sent on update and delete requests to ensure the client has an up-to-date value before proceeding.
Id string
The provider-assigned unique ID for this managed resource.
PulumiLabels map[string]string
The combination of labels configured directly on the resource and default labels configured on the provider.
Uid string
Output only. Unique identifier of the DeployPolicy.
UpdateTime string
Output only. Time at which the DeployPolicy was updated.
createTime String
Output only. Time at which the DeployPolicy was created.
effectiveAnnotations Map<String,String>
effectiveLabels Map<String,String>
All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
etag String
Optional. The weak etag of the DeployPolicy resource. This checksum is computed by the server based on the value of other fields, and may be sent on update and delete requests to ensure the client has an up-to-date value before proceeding.
id String
The provider-assigned unique ID for this managed resource.
pulumiLabels Map<String,String>
The combination of labels configured directly on the resource and default labels configured on the provider.
uid String
Output only. Unique identifier of the DeployPolicy.
updateTime String
Output only. Time at which the DeployPolicy was updated.
createTime string
Output only. Time at which the DeployPolicy was created.
effectiveAnnotations {[key: string]: string}
effectiveLabels {[key: string]: string}
All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
etag string
Optional. The weak etag of the DeployPolicy resource. This checksum is computed by the server based on the value of other fields, and may be sent on update and delete requests to ensure the client has an up-to-date value before proceeding.
id string
The provider-assigned unique ID for this managed resource.
pulumiLabels {[key: string]: string}
The combination of labels configured directly on the resource and default labels configured on the provider.
uid string
Output only. Unique identifier of the DeployPolicy.
updateTime string
Output only. Time at which the DeployPolicy was updated.
create_time str
Output only. Time at which the DeployPolicy was created.
effective_annotations Mapping[str, str]
effective_labels Mapping[str, str]
All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
etag str
Optional. The weak etag of the DeployPolicy resource. This checksum is computed by the server based on the value of other fields, and may be sent on update and delete requests to ensure the client has an up-to-date value before proceeding.
id str
The provider-assigned unique ID for this managed resource.
pulumi_labels Mapping[str, str]
The combination of labels configured directly on the resource and default labels configured on the provider.
uid str
Output only. Unique identifier of the DeployPolicy.
update_time str
Output only. Time at which the DeployPolicy was updated.
createTime String
Output only. Time at which the DeployPolicy was created.
effectiveAnnotations Map<String>
effectiveLabels Map<String>
All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
etag String
Optional. The weak etag of the DeployPolicy resource. This checksum is computed by the server based on the value of other fields, and may be sent on update and delete requests to ensure the client has an up-to-date value before proceeding.
id String
The provider-assigned unique ID for this managed resource.
pulumiLabels Map<String>
The combination of labels configured directly on the resource and default labels configured on the provider.
uid String
Output only. Unique identifier of the DeployPolicy.
updateTime String
Output only. Time at which the DeployPolicy was updated.

Look up Existing DeployPolicy Resource

Get an existing DeployPolicy 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?: DeployPolicyState, opts?: CustomResourceOptions): DeployPolicy
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        annotations: Optional[Mapping[str, str]] = None,
        create_time: Optional[str] = None,
        description: Optional[str] = None,
        effective_annotations: Optional[Mapping[str, str]] = None,
        effective_labels: Optional[Mapping[str, str]] = None,
        etag: Optional[str] = None,
        labels: Optional[Mapping[str, str]] = None,
        location: Optional[str] = None,
        name: Optional[str] = None,
        project: Optional[str] = None,
        pulumi_labels: Optional[Mapping[str, str]] = None,
        rules: Optional[Sequence[DeployPolicyRuleArgs]] = None,
        selectors: Optional[Sequence[DeployPolicySelectorArgs]] = None,
        suspended: Optional[bool] = None,
        uid: Optional[str] = None,
        update_time: Optional[str] = None) -> DeployPolicy
func GetDeployPolicy(ctx *Context, name string, id IDInput, state *DeployPolicyState, opts ...ResourceOption) (*DeployPolicy, error)
public static DeployPolicy Get(string name, Input<string> id, DeployPolicyState? state, CustomResourceOptions? opts = null)
public static DeployPolicy get(String name, Output<String> id, DeployPolicyState state, CustomResourceOptions options)
resources:  _:    type: gcp:clouddeploy:DeployPolicy    get:      id: ${id}
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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:
Annotations Dictionary<string, string>
Optional. User annotations. These attributes can only be set and used by the user, and not by Cloud Deploy. Annotations must meet the following constraints: * Annotations are key/value pairs. * Valid annotation keys have two segments: an optional prefix and name, separated by a slash ('/'). * The name segment is required and must be 63 characters or less, beginning and ending with an alphanumeric character ('[a-z0-9A-Z]') with dashes ('-'), underscores ('_'), dots ('.'), and alphanumerics between. * The prefix is optional. If specified, the prefix must be a DNS subdomain: a series of DNS labels separated by dots('.'), not longer than 253 characters in total, followed by a slash ('/'). See https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations/#syntax-and-character-set for more details. Note: This field is non-authoritative, and will only manage the annotations present in your configuration. Please refer to the field 'effective_annotations' for all of the annotations present on the resource.
CreateTime string
Output only. Time at which the DeployPolicy was created.
Description string
Optional. Description of the 'DeployPolicy'. Max length is 255 characters.
EffectiveAnnotations Dictionary<string, string>
EffectiveLabels Dictionary<string, string>
All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
Etag string
Optional. The weak etag of the DeployPolicy resource. This checksum is computed by the server based on the value of other fields, and may be sent on update and delete requests to ensure the client has an up-to-date value before proceeding.
Labels Dictionary<string, string>
Optional. Labels are attributes that can be set and used by both the user and by Cloud Deploy. Labels must meet the following constraints: * Keys and values can contain only lowercase letters, numeric characters, underscores, and dashes. * All characters must use UTF-8 encoding, and international characters are allowed. * Keys must start with a lowercase letter or international character. * Each resource is limited to a maximum of 64 labels. Both keys and values are additionally constrained to be <= 63 characters. Note: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field 'effective_labels' for all of the labels present on the resource.
Location Changes to this property will trigger replacement. string
The location for the resource
Name Changes to this property will trigger replacement. string
Name of the DeployPolicy.
Project Changes to this property will trigger replacement. string
PulumiLabels Dictionary<string, string>
The combination of labels configured directly on the resource and default labels configured on the provider.
Rules List<DeployPolicyRule>
Required. Rules to apply. At least one rule must be present. Structure is documented below.
Selectors List<DeployPolicySelector>
Required. Selected resources to which the policy will be applied. At least one selector is required. If one selector matches the resource the policy applies. For example, if there are two selectors and the action being attempted matches one of them, the policy will apply to that action. Structure is documented below.
Suspended bool
Optional. When suspended, the policy will not prevent actions from occurring, even if the action violates the policy.
Uid string
Output only. Unique identifier of the DeployPolicy.
UpdateTime string
Output only. Time at which the DeployPolicy was updated.
Annotations map[string]string
Optional. User annotations. These attributes can only be set and used by the user, and not by Cloud Deploy. Annotations must meet the following constraints: * Annotations are key/value pairs. * Valid annotation keys have two segments: an optional prefix and name, separated by a slash ('/'). * The name segment is required and must be 63 characters or less, beginning and ending with an alphanumeric character ('[a-z0-9A-Z]') with dashes ('-'), underscores ('_'), dots ('.'), and alphanumerics between. * The prefix is optional. If specified, the prefix must be a DNS subdomain: a series of DNS labels separated by dots('.'), not longer than 253 characters in total, followed by a slash ('/'). See https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations/#syntax-and-character-set for more details. Note: This field is non-authoritative, and will only manage the annotations present in your configuration. Please refer to the field 'effective_annotations' for all of the annotations present on the resource.
CreateTime string
Output only. Time at which the DeployPolicy was created.
Description string
Optional. Description of the 'DeployPolicy'. Max length is 255 characters.
EffectiveAnnotations map[string]string
EffectiveLabels map[string]string
All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
Etag string
Optional. The weak etag of the DeployPolicy resource. This checksum is computed by the server based on the value of other fields, and may be sent on update and delete requests to ensure the client has an up-to-date value before proceeding.
Labels map[string]string
Optional. Labels are attributes that can be set and used by both the user and by Cloud Deploy. Labels must meet the following constraints: * Keys and values can contain only lowercase letters, numeric characters, underscores, and dashes. * All characters must use UTF-8 encoding, and international characters are allowed. * Keys must start with a lowercase letter or international character. * Each resource is limited to a maximum of 64 labels. Both keys and values are additionally constrained to be <= 63 characters. Note: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field 'effective_labels' for all of the labels present on the resource.
Location Changes to this property will trigger replacement. string
The location for the resource
Name Changes to this property will trigger replacement. string
Name of the DeployPolicy.
Project Changes to this property will trigger replacement. string
PulumiLabels map[string]string
The combination of labels configured directly on the resource and default labels configured on the provider.
Rules []DeployPolicyRuleArgs
Required. Rules to apply. At least one rule must be present. Structure is documented below.
Selectors []DeployPolicySelectorArgs
Required. Selected resources to which the policy will be applied. At least one selector is required. If one selector matches the resource the policy applies. For example, if there are two selectors and the action being attempted matches one of them, the policy will apply to that action. Structure is documented below.
Suspended bool
Optional. When suspended, the policy will not prevent actions from occurring, even if the action violates the policy.
Uid string
Output only. Unique identifier of the DeployPolicy.
UpdateTime string
Output only. Time at which the DeployPolicy was updated.
annotations Map<String,String>
Optional. User annotations. These attributes can only be set and used by the user, and not by Cloud Deploy. Annotations must meet the following constraints: * Annotations are key/value pairs. * Valid annotation keys have two segments: an optional prefix and name, separated by a slash ('/'). * The name segment is required and must be 63 characters or less, beginning and ending with an alphanumeric character ('[a-z0-9A-Z]') with dashes ('-'), underscores ('_'), dots ('.'), and alphanumerics between. * The prefix is optional. If specified, the prefix must be a DNS subdomain: a series of DNS labels separated by dots('.'), not longer than 253 characters in total, followed by a slash ('/'). See https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations/#syntax-and-character-set for more details. Note: This field is non-authoritative, and will only manage the annotations present in your configuration. Please refer to the field 'effective_annotations' for all of the annotations present on the resource.
createTime String
Output only. Time at which the DeployPolicy was created.
description String
Optional. Description of the 'DeployPolicy'. Max length is 255 characters.
effectiveAnnotations Map<String,String>
effectiveLabels Map<String,String>
All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
etag String
Optional. The weak etag of the DeployPolicy resource. This checksum is computed by the server based on the value of other fields, and may be sent on update and delete requests to ensure the client has an up-to-date value before proceeding.
labels Map<String,String>
Optional. Labels are attributes that can be set and used by both the user and by Cloud Deploy. Labels must meet the following constraints: * Keys and values can contain only lowercase letters, numeric characters, underscores, and dashes. * All characters must use UTF-8 encoding, and international characters are allowed. * Keys must start with a lowercase letter or international character. * Each resource is limited to a maximum of 64 labels. Both keys and values are additionally constrained to be <= 63 characters. Note: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field 'effective_labels' for all of the labels present on the resource.
location Changes to this property will trigger replacement. String
The location for the resource
name Changes to this property will trigger replacement. String
Name of the DeployPolicy.
project Changes to this property will trigger replacement. String
pulumiLabels Map<String,String>
The combination of labels configured directly on the resource and default labels configured on the provider.
rules List<DeployPolicyRule>
Required. Rules to apply. At least one rule must be present. Structure is documented below.
selectors List<DeployPolicySelector>
Required. Selected resources to which the policy will be applied. At least one selector is required. If one selector matches the resource the policy applies. For example, if there are two selectors and the action being attempted matches one of them, the policy will apply to that action. Structure is documented below.
suspended Boolean
Optional. When suspended, the policy will not prevent actions from occurring, even if the action violates the policy.
uid String
Output only. Unique identifier of the DeployPolicy.
updateTime String
Output only. Time at which the DeployPolicy was updated.
annotations {[key: string]: string}
Optional. User annotations. These attributes can only be set and used by the user, and not by Cloud Deploy. Annotations must meet the following constraints: * Annotations are key/value pairs. * Valid annotation keys have two segments: an optional prefix and name, separated by a slash ('/'). * The name segment is required and must be 63 characters or less, beginning and ending with an alphanumeric character ('[a-z0-9A-Z]') with dashes ('-'), underscores ('_'), dots ('.'), and alphanumerics between. * The prefix is optional. If specified, the prefix must be a DNS subdomain: a series of DNS labels separated by dots('.'), not longer than 253 characters in total, followed by a slash ('/'). See https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations/#syntax-and-character-set for more details. Note: This field is non-authoritative, and will only manage the annotations present in your configuration. Please refer to the field 'effective_annotations' for all of the annotations present on the resource.
createTime string
Output only. Time at which the DeployPolicy was created.
description string
Optional. Description of the 'DeployPolicy'. Max length is 255 characters.
effectiveAnnotations {[key: string]: string}
effectiveLabels {[key: string]: string}
All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
etag string
Optional. The weak etag of the DeployPolicy resource. This checksum is computed by the server based on the value of other fields, and may be sent on update and delete requests to ensure the client has an up-to-date value before proceeding.
labels {[key: string]: string}
Optional. Labels are attributes that can be set and used by both the user and by Cloud Deploy. Labels must meet the following constraints: * Keys and values can contain only lowercase letters, numeric characters, underscores, and dashes. * All characters must use UTF-8 encoding, and international characters are allowed. * Keys must start with a lowercase letter or international character. * Each resource is limited to a maximum of 64 labels. Both keys and values are additionally constrained to be <= 63 characters. Note: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field 'effective_labels' for all of the labels present on the resource.
location Changes to this property will trigger replacement. string
The location for the resource
name Changes to this property will trigger replacement. string
Name of the DeployPolicy.
project Changes to this property will trigger replacement. string
pulumiLabels {[key: string]: string}
The combination of labels configured directly on the resource and default labels configured on the provider.
rules DeployPolicyRule[]
Required. Rules to apply. At least one rule must be present. Structure is documented below.
selectors DeployPolicySelector[]
Required. Selected resources to which the policy will be applied. At least one selector is required. If one selector matches the resource the policy applies. For example, if there are two selectors and the action being attempted matches one of them, the policy will apply to that action. Structure is documented below.
suspended boolean
Optional. When suspended, the policy will not prevent actions from occurring, even if the action violates the policy.
uid string
Output only. Unique identifier of the DeployPolicy.
updateTime string
Output only. Time at which the DeployPolicy was updated.
annotations Mapping[str, str]
Optional. User annotations. These attributes can only be set and used by the user, and not by Cloud Deploy. Annotations must meet the following constraints: * Annotations are key/value pairs. * Valid annotation keys have two segments: an optional prefix and name, separated by a slash ('/'). * The name segment is required and must be 63 characters or less, beginning and ending with an alphanumeric character ('[a-z0-9A-Z]') with dashes ('-'), underscores ('_'), dots ('.'), and alphanumerics between. * The prefix is optional. If specified, the prefix must be a DNS subdomain: a series of DNS labels separated by dots('.'), not longer than 253 characters in total, followed by a slash ('/'). See https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations/#syntax-and-character-set for more details. Note: This field is non-authoritative, and will only manage the annotations present in your configuration. Please refer to the field 'effective_annotations' for all of the annotations present on the resource.
create_time str
Output only. Time at which the DeployPolicy was created.
description str
Optional. Description of the 'DeployPolicy'. Max length is 255 characters.
effective_annotations Mapping[str, str]
effective_labels Mapping[str, str]
All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
etag str
Optional. The weak etag of the DeployPolicy resource. This checksum is computed by the server based on the value of other fields, and may be sent on update and delete requests to ensure the client has an up-to-date value before proceeding.
labels Mapping[str, str]
Optional. Labels are attributes that can be set and used by both the user and by Cloud Deploy. Labels must meet the following constraints: * Keys and values can contain only lowercase letters, numeric characters, underscores, and dashes. * All characters must use UTF-8 encoding, and international characters are allowed. * Keys must start with a lowercase letter or international character. * Each resource is limited to a maximum of 64 labels. Both keys and values are additionally constrained to be <= 63 characters. Note: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field 'effective_labels' for all of the labels present on the resource.
location Changes to this property will trigger replacement. str
The location for the resource
name Changes to this property will trigger replacement. str
Name of the DeployPolicy.
project Changes to this property will trigger replacement. str
pulumi_labels Mapping[str, str]
The combination of labels configured directly on the resource and default labels configured on the provider.
rules Sequence[DeployPolicyRuleArgs]
Required. Rules to apply. At least one rule must be present. Structure is documented below.
selectors Sequence[DeployPolicySelectorArgs]
Required. Selected resources to which the policy will be applied. At least one selector is required. If one selector matches the resource the policy applies. For example, if there are two selectors and the action being attempted matches one of them, the policy will apply to that action. Structure is documented below.
suspended bool
Optional. When suspended, the policy will not prevent actions from occurring, even if the action violates the policy.
uid str
Output only. Unique identifier of the DeployPolicy.
update_time str
Output only. Time at which the DeployPolicy was updated.
annotations Map<String>
Optional. User annotations. These attributes can only be set and used by the user, and not by Cloud Deploy. Annotations must meet the following constraints: * Annotations are key/value pairs. * Valid annotation keys have two segments: an optional prefix and name, separated by a slash ('/'). * The name segment is required and must be 63 characters or less, beginning and ending with an alphanumeric character ('[a-z0-9A-Z]') with dashes ('-'), underscores ('_'), dots ('.'), and alphanumerics between. * The prefix is optional. If specified, the prefix must be a DNS subdomain: a series of DNS labels separated by dots('.'), not longer than 253 characters in total, followed by a slash ('/'). See https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations/#syntax-and-character-set for more details. Note: This field is non-authoritative, and will only manage the annotations present in your configuration. Please refer to the field 'effective_annotations' for all of the annotations present on the resource.
createTime String
Output only. Time at which the DeployPolicy was created.
description String
Optional. Description of the 'DeployPolicy'. Max length is 255 characters.
effectiveAnnotations Map<String>
effectiveLabels Map<String>
All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
etag String
Optional. The weak etag of the DeployPolicy resource. This checksum is computed by the server based on the value of other fields, and may be sent on update and delete requests to ensure the client has an up-to-date value before proceeding.
labels Map<String>
Optional. Labels are attributes that can be set and used by both the user and by Cloud Deploy. Labels must meet the following constraints: * Keys and values can contain only lowercase letters, numeric characters, underscores, and dashes. * All characters must use UTF-8 encoding, and international characters are allowed. * Keys must start with a lowercase letter or international character. * Each resource is limited to a maximum of 64 labels. Both keys and values are additionally constrained to be <= 63 characters. Note: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field 'effective_labels' for all of the labels present on the resource.
location Changes to this property will trigger replacement. String
The location for the resource
name Changes to this property will trigger replacement. String
Name of the DeployPolicy.
project Changes to this property will trigger replacement. String
pulumiLabels Map<String>
The combination of labels configured directly on the resource and default labels configured on the provider.
rules List<Property Map>
Required. Rules to apply. At least one rule must be present. Structure is documented below.
selectors List<Property Map>
Required. Selected resources to which the policy will be applied. At least one selector is required. If one selector matches the resource the policy applies. For example, if there are two selectors and the action being attempted matches one of them, the policy will apply to that action. Structure is documented below.
suspended Boolean
Optional. When suspended, the policy will not prevent actions from occurring, even if the action violates the policy.
uid String
Output only. Unique identifier of the DeployPolicy.
updateTime String
Output only. Time at which the DeployPolicy was updated.

Supporting Types

DeployPolicyRule
, DeployPolicyRuleArgs

RolloutRestriction DeployPolicyRuleRolloutRestriction
Optional. Rollout restrictions. Structure is documented below.
RolloutRestriction DeployPolicyRuleRolloutRestriction
Optional. Rollout restrictions. Structure is documented below.
rolloutRestriction DeployPolicyRuleRolloutRestriction
Optional. Rollout restrictions. Structure is documented below.
rolloutRestriction DeployPolicyRuleRolloutRestriction
Optional. Rollout restrictions. Structure is documented below.
rollout_restriction DeployPolicyRuleRolloutRestriction
Optional. Rollout restrictions. Structure is documented below.
rolloutRestriction Property Map
Optional. Rollout restrictions. Structure is documented below.

DeployPolicyRuleRolloutRestriction
, DeployPolicyRuleRolloutRestrictionArgs

Id This property is required. string
Required. ID of the rule. This id must be unique in the DeployPolicy resource to which this rule belongs. The format is a-z{0,62}.
Actions List<string>
Optional. Rollout actions to be restricted as part of the policy. If left empty, all actions will be restricted. Each value may be one of: ADVANCE, APPROVE, CANCEL, CREATE, IGNORE_JOB, RETRY_JOB, ROLLBACK, TERMINATE_JOBRUN.
Invokers List<string>
Optional. What invoked the action. If left empty, all invoker types will be restricted. Each value may be one of: USER, DEPLOY_AUTOMATION.
TimeWindows DeployPolicyRuleRolloutRestrictionTimeWindows
Required. Time window within which actions are restricted. Structure is documented below.
Id This property is required. string
Required. ID of the rule. This id must be unique in the DeployPolicy resource to which this rule belongs. The format is a-z{0,62}.
Actions []string
Optional. Rollout actions to be restricted as part of the policy. If left empty, all actions will be restricted. Each value may be one of: ADVANCE, APPROVE, CANCEL, CREATE, IGNORE_JOB, RETRY_JOB, ROLLBACK, TERMINATE_JOBRUN.
Invokers []string
Optional. What invoked the action. If left empty, all invoker types will be restricted. Each value may be one of: USER, DEPLOY_AUTOMATION.
TimeWindows DeployPolicyRuleRolloutRestrictionTimeWindows
Required. Time window within which actions are restricted. Structure is documented below.
id This property is required. String
Required. ID of the rule. This id must be unique in the DeployPolicy resource to which this rule belongs. The format is a-z{0,62}.
actions List<String>
Optional. Rollout actions to be restricted as part of the policy. If left empty, all actions will be restricted. Each value may be one of: ADVANCE, APPROVE, CANCEL, CREATE, IGNORE_JOB, RETRY_JOB, ROLLBACK, TERMINATE_JOBRUN.
invokers List<String>
Optional. What invoked the action. If left empty, all invoker types will be restricted. Each value may be one of: USER, DEPLOY_AUTOMATION.
timeWindows DeployPolicyRuleRolloutRestrictionTimeWindows
Required. Time window within which actions are restricted. Structure is documented below.
id This property is required. string
Required. ID of the rule. This id must be unique in the DeployPolicy resource to which this rule belongs. The format is a-z{0,62}.
actions string[]
Optional. Rollout actions to be restricted as part of the policy. If left empty, all actions will be restricted. Each value may be one of: ADVANCE, APPROVE, CANCEL, CREATE, IGNORE_JOB, RETRY_JOB, ROLLBACK, TERMINATE_JOBRUN.
invokers string[]
Optional. What invoked the action. If left empty, all invoker types will be restricted. Each value may be one of: USER, DEPLOY_AUTOMATION.
timeWindows DeployPolicyRuleRolloutRestrictionTimeWindows
Required. Time window within which actions are restricted. Structure is documented below.
id This property is required. str
Required. ID of the rule. This id must be unique in the DeployPolicy resource to which this rule belongs. The format is a-z{0,62}.
actions Sequence[str]
Optional. Rollout actions to be restricted as part of the policy. If left empty, all actions will be restricted. Each value may be one of: ADVANCE, APPROVE, CANCEL, CREATE, IGNORE_JOB, RETRY_JOB, ROLLBACK, TERMINATE_JOBRUN.
invokers Sequence[str]
Optional. What invoked the action. If left empty, all invoker types will be restricted. Each value may be one of: USER, DEPLOY_AUTOMATION.
time_windows DeployPolicyRuleRolloutRestrictionTimeWindows
Required. Time window within which actions are restricted. Structure is documented below.
id This property is required. String
Required. ID of the rule. This id must be unique in the DeployPolicy resource to which this rule belongs. The format is a-z{0,62}.
actions List<String>
Optional. Rollout actions to be restricted as part of the policy. If left empty, all actions will be restricted. Each value may be one of: ADVANCE, APPROVE, CANCEL, CREATE, IGNORE_JOB, RETRY_JOB, ROLLBACK, TERMINATE_JOBRUN.
invokers List<String>
Optional. What invoked the action. If left empty, all invoker types will be restricted. Each value may be one of: USER, DEPLOY_AUTOMATION.
timeWindows Property Map
Required. Time window within which actions are restricted. Structure is documented below.

DeployPolicyRuleRolloutRestrictionTimeWindows
, DeployPolicyRuleRolloutRestrictionTimeWindowsArgs

TimeZone This property is required. string
Required. The time zone in IANA format IANA Time Zone Database (e.g. America/New_York).
OneTimeWindows List<DeployPolicyRuleRolloutRestrictionTimeWindowsOneTimeWindow>
Optional. One-time windows within which actions are restricted. Structure is documented below.
WeeklyWindows List<DeployPolicyRuleRolloutRestrictionTimeWindowsWeeklyWindow>
Optional. Recurring weekly windows within which actions are restricted. Structure is documented below.
TimeZone This property is required. string
Required. The time zone in IANA format IANA Time Zone Database (e.g. America/New_York).
OneTimeWindows []DeployPolicyRuleRolloutRestrictionTimeWindowsOneTimeWindow
Optional. One-time windows within which actions are restricted. Structure is documented below.
WeeklyWindows []DeployPolicyRuleRolloutRestrictionTimeWindowsWeeklyWindow
Optional. Recurring weekly windows within which actions are restricted. Structure is documented below.
timeZone This property is required. String
Required. The time zone in IANA format IANA Time Zone Database (e.g. America/New_York).
oneTimeWindows List<DeployPolicyRuleRolloutRestrictionTimeWindowsOneTimeWindow>
Optional. One-time windows within which actions are restricted. Structure is documented below.
weeklyWindows List<DeployPolicyRuleRolloutRestrictionTimeWindowsWeeklyWindow>
Optional. Recurring weekly windows within which actions are restricted. Structure is documented below.
timeZone This property is required. string
Required. The time zone in IANA format IANA Time Zone Database (e.g. America/New_York).
oneTimeWindows DeployPolicyRuleRolloutRestrictionTimeWindowsOneTimeWindow[]
Optional. One-time windows within which actions are restricted. Structure is documented below.
weeklyWindows DeployPolicyRuleRolloutRestrictionTimeWindowsWeeklyWindow[]
Optional. Recurring weekly windows within which actions are restricted. Structure is documented below.
time_zone This property is required. str
Required. The time zone in IANA format IANA Time Zone Database (e.g. America/New_York).
one_time_windows Sequence[DeployPolicyRuleRolloutRestrictionTimeWindowsOneTimeWindow]
Optional. One-time windows within which actions are restricted. Structure is documented below.
weekly_windows Sequence[DeployPolicyRuleRolloutRestrictionTimeWindowsWeeklyWindow]
Optional. Recurring weekly windows within which actions are restricted. Structure is documented below.
timeZone This property is required. String
Required. The time zone in IANA format IANA Time Zone Database (e.g. America/New_York).
oneTimeWindows List<Property Map>
Optional. One-time windows within which actions are restricted. Structure is documented below.
weeklyWindows List<Property Map>
Optional. Recurring weekly windows within which actions are restricted. Structure is documented below.

DeployPolicyRuleRolloutRestrictionTimeWindowsOneTimeWindow
, DeployPolicyRuleRolloutRestrictionTimeWindowsOneTimeWindowArgs

EndDate This property is required. DeployPolicyRuleRolloutRestrictionTimeWindowsOneTimeWindowEndDate
Required. End date. Structure is documented below.
EndTime This property is required. DeployPolicyRuleRolloutRestrictionTimeWindowsOneTimeWindowEndTime
Required. End time (exclusive). You may use 24:00 for the end of the day. Structure is documented below.
StartDate This property is required. DeployPolicyRuleRolloutRestrictionTimeWindowsOneTimeWindowStartDate
Required. Start date. Structure is documented below.
StartTime This property is required. DeployPolicyRuleRolloutRestrictionTimeWindowsOneTimeWindowStartTime
Required. Start time (inclusive). Use 00:00 for the beginning of the day. Structure is documented below.
EndDate This property is required. DeployPolicyRuleRolloutRestrictionTimeWindowsOneTimeWindowEndDate
Required. End date. Structure is documented below.
EndTime This property is required. DeployPolicyRuleRolloutRestrictionTimeWindowsOneTimeWindowEndTime
Required. End time (exclusive). You may use 24:00 for the end of the day. Structure is documented below.
StartDate This property is required. DeployPolicyRuleRolloutRestrictionTimeWindowsOneTimeWindowStartDate
Required. Start date. Structure is documented below.
StartTime This property is required. DeployPolicyRuleRolloutRestrictionTimeWindowsOneTimeWindowStartTime
Required. Start time (inclusive). Use 00:00 for the beginning of the day. Structure is documented below.
endDate This property is required. DeployPolicyRuleRolloutRestrictionTimeWindowsOneTimeWindowEndDate
Required. End date. Structure is documented below.
endTime This property is required. DeployPolicyRuleRolloutRestrictionTimeWindowsOneTimeWindowEndTime
Required. End time (exclusive). You may use 24:00 for the end of the day. Structure is documented below.
startDate This property is required. DeployPolicyRuleRolloutRestrictionTimeWindowsOneTimeWindowStartDate
Required. Start date. Structure is documented below.
startTime This property is required. DeployPolicyRuleRolloutRestrictionTimeWindowsOneTimeWindowStartTime
Required. Start time (inclusive). Use 00:00 for the beginning of the day. Structure is documented below.
endDate This property is required. DeployPolicyRuleRolloutRestrictionTimeWindowsOneTimeWindowEndDate
Required. End date. Structure is documented below.
endTime This property is required. DeployPolicyRuleRolloutRestrictionTimeWindowsOneTimeWindowEndTime
Required. End time (exclusive). You may use 24:00 for the end of the day. Structure is documented below.
startDate This property is required. DeployPolicyRuleRolloutRestrictionTimeWindowsOneTimeWindowStartDate
Required. Start date. Structure is documented below.
startTime This property is required. DeployPolicyRuleRolloutRestrictionTimeWindowsOneTimeWindowStartTime
Required. Start time (inclusive). Use 00:00 for the beginning of the day. Structure is documented below.
end_date This property is required. DeployPolicyRuleRolloutRestrictionTimeWindowsOneTimeWindowEndDate
Required. End date. Structure is documented below.
end_time This property is required. DeployPolicyRuleRolloutRestrictionTimeWindowsOneTimeWindowEndTime
Required. End time (exclusive). You may use 24:00 for the end of the day. Structure is documented below.
start_date This property is required. DeployPolicyRuleRolloutRestrictionTimeWindowsOneTimeWindowStartDate
Required. Start date. Structure is documented below.
start_time This property is required. DeployPolicyRuleRolloutRestrictionTimeWindowsOneTimeWindowStartTime
Required. Start time (inclusive). Use 00:00 for the beginning of the day. Structure is documented below.
endDate This property is required. Property Map
Required. End date. Structure is documented below.
endTime This property is required. Property Map
Required. End time (exclusive). You may use 24:00 for the end of the day. Structure is documented below.
startDate This property is required. Property Map
Required. Start date. Structure is documented below.
startTime This property is required. Property Map
Required. Start time (inclusive). Use 00:00 for the beginning of the day. Structure is documented below.

DeployPolicyRuleRolloutRestrictionTimeWindowsOneTimeWindowEndDate
, DeployPolicyRuleRolloutRestrictionTimeWindowsOneTimeWindowEndDateArgs

Day int
Day of a month. Must be from 1 to 31 and valid for the year and month.
Month int
Month of a year. Must be from 1 to 12.
Year int
Year of the date. Must be from 1 to 9999.
Day int
Day of a month. Must be from 1 to 31 and valid for the year and month.
Month int
Month of a year. Must be from 1 to 12.
Year int
Year of the date. Must be from 1 to 9999.
day Integer
Day of a month. Must be from 1 to 31 and valid for the year and month.
month Integer
Month of a year. Must be from 1 to 12.
year Integer
Year of the date. Must be from 1 to 9999.
day number
Day of a month. Must be from 1 to 31 and valid for the year and month.
month number
Month of a year. Must be from 1 to 12.
year number
Year of the date. Must be from 1 to 9999.
day int
Day of a month. Must be from 1 to 31 and valid for the year and month.
month int
Month of a year. Must be from 1 to 12.
year int
Year of the date. Must be from 1 to 9999.
day Number
Day of a month. Must be from 1 to 31 and valid for the year and month.
month Number
Month of a year. Must be from 1 to 12.
year Number
Year of the date. Must be from 1 to 9999.

DeployPolicyRuleRolloutRestrictionTimeWindowsOneTimeWindowEndTime
, DeployPolicyRuleRolloutRestrictionTimeWindowsOneTimeWindowEndTimeArgs

Hours int
Hours of a day in 24 hour format. Must be greater than or equal to 0 and typically must be less than or equal to 23. An API may choose to allow the value "24:00:00" for scenarios like business closing time.
Minutes int
Minutes of an hour. Must be greater than or equal to 0 and less than or equal to 59.
Nanos int
Fractions of seconds, in nanoseconds. Must be greater than or equal to 0 and less than or equal to 999,999,999.


Seconds int
Seconds of a minute. Must be greater than or equal to 0 and typically must be less than or equal to 59. An API may allow the value 60 if it allows leap-seconds.
Hours int
Hours of a day in 24 hour format. Must be greater than or equal to 0 and typically must be less than or equal to 23. An API may choose to allow the value "24:00:00" for scenarios like business closing time.
Minutes int
Minutes of an hour. Must be greater than or equal to 0 and less than or equal to 59.
Nanos int
Fractions of seconds, in nanoseconds. Must be greater than or equal to 0 and less than or equal to 999,999,999.


Seconds int
Seconds of a minute. Must be greater than or equal to 0 and typically must be less than or equal to 59. An API may allow the value 60 if it allows leap-seconds.
hours Integer
Hours of a day in 24 hour format. Must be greater than or equal to 0 and typically must be less than or equal to 23. An API may choose to allow the value "24:00:00" for scenarios like business closing time.
minutes Integer
Minutes of an hour. Must be greater than or equal to 0 and less than or equal to 59.
nanos Integer
Fractions of seconds, in nanoseconds. Must be greater than or equal to 0 and less than or equal to 999,999,999.


seconds Integer
Seconds of a minute. Must be greater than or equal to 0 and typically must be less than or equal to 59. An API may allow the value 60 if it allows leap-seconds.
hours number
Hours of a day in 24 hour format. Must be greater than or equal to 0 and typically must be less than or equal to 23. An API may choose to allow the value "24:00:00" for scenarios like business closing time.
minutes number
Minutes of an hour. Must be greater than or equal to 0 and less than or equal to 59.
nanos number
Fractions of seconds, in nanoseconds. Must be greater than or equal to 0 and less than or equal to 999,999,999.


seconds number
Seconds of a minute. Must be greater than or equal to 0 and typically must be less than or equal to 59. An API may allow the value 60 if it allows leap-seconds.
hours int
Hours of a day in 24 hour format. Must be greater than or equal to 0 and typically must be less than or equal to 23. An API may choose to allow the value "24:00:00" for scenarios like business closing time.
minutes int
Minutes of an hour. Must be greater than or equal to 0 and less than or equal to 59.
nanos int
Fractions of seconds, in nanoseconds. Must be greater than or equal to 0 and less than or equal to 999,999,999.


seconds int
Seconds of a minute. Must be greater than or equal to 0 and typically must be less than or equal to 59. An API may allow the value 60 if it allows leap-seconds.
hours Number
Hours of a day in 24 hour format. Must be greater than or equal to 0 and typically must be less than or equal to 23. An API may choose to allow the value "24:00:00" for scenarios like business closing time.
minutes Number
Minutes of an hour. Must be greater than or equal to 0 and less than or equal to 59.
nanos Number
Fractions of seconds, in nanoseconds. Must be greater than or equal to 0 and less than or equal to 999,999,999.


seconds Number
Seconds of a minute. Must be greater than or equal to 0 and typically must be less than or equal to 59. An API may allow the value 60 if it allows leap-seconds.

DeployPolicyRuleRolloutRestrictionTimeWindowsOneTimeWindowStartDate
, DeployPolicyRuleRolloutRestrictionTimeWindowsOneTimeWindowStartDateArgs

Day int
Day of a month. Must be from 1 to 31 and valid for the year and month, or 0 to specify a year by itself or a year and month where the day isn't significant.
Month int
Month of a year. Must be from 1 to 12, or 0 to specify a year without a month and day.
Year int
Year of the date. Must be from 1 to 9999, or 0 to specify a date without a year.
Day int
Day of a month. Must be from 1 to 31 and valid for the year and month, or 0 to specify a year by itself or a year and month where the day isn't significant.
Month int
Month of a year. Must be from 1 to 12, or 0 to specify a year without a month and day.
Year int
Year of the date. Must be from 1 to 9999, or 0 to specify a date without a year.
day Integer
Day of a month. Must be from 1 to 31 and valid for the year and month, or 0 to specify a year by itself or a year and month where the day isn't significant.
month Integer
Month of a year. Must be from 1 to 12, or 0 to specify a year without a month and day.
year Integer
Year of the date. Must be from 1 to 9999, or 0 to specify a date without a year.
day number
Day of a month. Must be from 1 to 31 and valid for the year and month, or 0 to specify a year by itself or a year and month where the day isn't significant.
month number
Month of a year. Must be from 1 to 12, or 0 to specify a year without a month and day.
year number
Year of the date. Must be from 1 to 9999, or 0 to specify a date without a year.
day int
Day of a month. Must be from 1 to 31 and valid for the year and month, or 0 to specify a year by itself or a year and month where the day isn't significant.
month int
Month of a year. Must be from 1 to 12, or 0 to specify a year without a month and day.
year int
Year of the date. Must be from 1 to 9999, or 0 to specify a date without a year.
day Number
Day of a month. Must be from 1 to 31 and valid for the year and month, or 0 to specify a year by itself or a year and month where the day isn't significant.
month Number
Month of a year. Must be from 1 to 12, or 0 to specify a year without a month and day.
year Number
Year of the date. Must be from 1 to 9999, or 0 to specify a date without a year.

DeployPolicyRuleRolloutRestrictionTimeWindowsOneTimeWindowStartTime
, DeployPolicyRuleRolloutRestrictionTimeWindowsOneTimeWindowStartTimeArgs

Hours int
Hours of a day in 24 hour format. Must be greater than or equal to 0 and typically must be less than or equal to 23. An API may choose to allow the value "24:00:00" for scenarios like business closing time.
Minutes int
Minutes of an hour. Must be greater than or equal to 0 and less than or equal to 59.
Nanos int
Fractions of seconds, in nanoseconds. Must be greater than or equal to 0 and less than or equal to 999,999,999.
Seconds int
Seconds of a minute. Must be greater than or equal to 0 and typically must be less than or equal to 59. An API may allow the value 60 if it allows leap-seconds.
Hours int
Hours of a day in 24 hour format. Must be greater than or equal to 0 and typically must be less than or equal to 23. An API may choose to allow the value "24:00:00" for scenarios like business closing time.
Minutes int
Minutes of an hour. Must be greater than or equal to 0 and less than or equal to 59.
Nanos int
Fractions of seconds, in nanoseconds. Must be greater than or equal to 0 and less than or equal to 999,999,999.
Seconds int
Seconds of a minute. Must be greater than or equal to 0 and typically must be less than or equal to 59. An API may allow the value 60 if it allows leap-seconds.
hours Integer
Hours of a day in 24 hour format. Must be greater than or equal to 0 and typically must be less than or equal to 23. An API may choose to allow the value "24:00:00" for scenarios like business closing time.
minutes Integer
Minutes of an hour. Must be greater than or equal to 0 and less than or equal to 59.
nanos Integer
Fractions of seconds, in nanoseconds. Must be greater than or equal to 0 and less than or equal to 999,999,999.
seconds Integer
Seconds of a minute. Must be greater than or equal to 0 and typically must be less than or equal to 59. An API may allow the value 60 if it allows leap-seconds.
hours number
Hours of a day in 24 hour format. Must be greater than or equal to 0 and typically must be less than or equal to 23. An API may choose to allow the value "24:00:00" for scenarios like business closing time.
minutes number
Minutes of an hour. Must be greater than or equal to 0 and less than or equal to 59.
nanos number
Fractions of seconds, in nanoseconds. Must be greater than or equal to 0 and less than or equal to 999,999,999.
seconds number
Seconds of a minute. Must be greater than or equal to 0 and typically must be less than or equal to 59. An API may allow the value 60 if it allows leap-seconds.
hours int
Hours of a day in 24 hour format. Must be greater than or equal to 0 and typically must be less than or equal to 23. An API may choose to allow the value "24:00:00" for scenarios like business closing time.
minutes int
Minutes of an hour. Must be greater than or equal to 0 and less than or equal to 59.
nanos int
Fractions of seconds, in nanoseconds. Must be greater than or equal to 0 and less than or equal to 999,999,999.
seconds int
Seconds of a minute. Must be greater than or equal to 0 and typically must be less than or equal to 59. An API may allow the value 60 if it allows leap-seconds.
hours Number
Hours of a day in 24 hour format. Must be greater than or equal to 0 and typically must be less than or equal to 23. An API may choose to allow the value "24:00:00" for scenarios like business closing time.
minutes Number
Minutes of an hour. Must be greater than or equal to 0 and less than or equal to 59.
nanos Number
Fractions of seconds, in nanoseconds. Must be greater than or equal to 0 and less than or equal to 999,999,999.
seconds Number
Seconds of a minute. Must be greater than or equal to 0 and typically must be less than or equal to 59. An API may allow the value 60 if it allows leap-seconds.

DeployPolicyRuleRolloutRestrictionTimeWindowsWeeklyWindow
, DeployPolicyRuleRolloutRestrictionTimeWindowsWeeklyWindowArgs

DaysOfWeeks List<string>
Optional. Days of week. If left empty, all days of the week will be included. Each value may be one of: MONDAY, TUESDAY, WEDNESDAY, THURSDAY, FRIDAY, SATURDAY, SUNDAY.
EndTime DeployPolicyRuleRolloutRestrictionTimeWindowsWeeklyWindowEndTime
Optional. End time (exclusive). Use 24:00 to indicate midnight. If you specify endTime you must also specify startTime. If left empty, this will block for the entire day for the days specified in daysOfWeek. Structure is documented below.
StartTime DeployPolicyRuleRolloutRestrictionTimeWindowsWeeklyWindowStartTime
Optional. Start time (inclusive). Use 00:00 for the beginning of the day. If you specify startTime you must also specify endTime. If left empty, this will block for the entire day for the days specified in daysOfWeek. Structure is documented below.
DaysOfWeeks []string
Optional. Days of week. If left empty, all days of the week will be included. Each value may be one of: MONDAY, TUESDAY, WEDNESDAY, THURSDAY, FRIDAY, SATURDAY, SUNDAY.
EndTime DeployPolicyRuleRolloutRestrictionTimeWindowsWeeklyWindowEndTime
Optional. End time (exclusive). Use 24:00 to indicate midnight. If you specify endTime you must also specify startTime. If left empty, this will block for the entire day for the days specified in daysOfWeek. Structure is documented below.
StartTime DeployPolicyRuleRolloutRestrictionTimeWindowsWeeklyWindowStartTime
Optional. Start time (inclusive). Use 00:00 for the beginning of the day. If you specify startTime you must also specify endTime. If left empty, this will block for the entire day for the days specified in daysOfWeek. Structure is documented below.
daysOfWeeks List<String>
Optional. Days of week. If left empty, all days of the week will be included. Each value may be one of: MONDAY, TUESDAY, WEDNESDAY, THURSDAY, FRIDAY, SATURDAY, SUNDAY.
endTime DeployPolicyRuleRolloutRestrictionTimeWindowsWeeklyWindowEndTime
Optional. End time (exclusive). Use 24:00 to indicate midnight. If you specify endTime you must also specify startTime. If left empty, this will block for the entire day for the days specified in daysOfWeek. Structure is documented below.
startTime DeployPolicyRuleRolloutRestrictionTimeWindowsWeeklyWindowStartTime
Optional. Start time (inclusive). Use 00:00 for the beginning of the day. If you specify startTime you must also specify endTime. If left empty, this will block for the entire day for the days specified in daysOfWeek. Structure is documented below.
daysOfWeeks string[]
Optional. Days of week. If left empty, all days of the week will be included. Each value may be one of: MONDAY, TUESDAY, WEDNESDAY, THURSDAY, FRIDAY, SATURDAY, SUNDAY.
endTime DeployPolicyRuleRolloutRestrictionTimeWindowsWeeklyWindowEndTime
Optional. End time (exclusive). Use 24:00 to indicate midnight. If you specify endTime you must also specify startTime. If left empty, this will block for the entire day for the days specified in daysOfWeek. Structure is documented below.
startTime DeployPolicyRuleRolloutRestrictionTimeWindowsWeeklyWindowStartTime
Optional. Start time (inclusive). Use 00:00 for the beginning of the day. If you specify startTime you must also specify endTime. If left empty, this will block for the entire day for the days specified in daysOfWeek. Structure is documented below.
days_of_weeks Sequence[str]
Optional. Days of week. If left empty, all days of the week will be included. Each value may be one of: MONDAY, TUESDAY, WEDNESDAY, THURSDAY, FRIDAY, SATURDAY, SUNDAY.
end_time DeployPolicyRuleRolloutRestrictionTimeWindowsWeeklyWindowEndTime
Optional. End time (exclusive). Use 24:00 to indicate midnight. If you specify endTime you must also specify startTime. If left empty, this will block for the entire day for the days specified in daysOfWeek. Structure is documented below.
start_time DeployPolicyRuleRolloutRestrictionTimeWindowsWeeklyWindowStartTime
Optional. Start time (inclusive). Use 00:00 for the beginning of the day. If you specify startTime you must also specify endTime. If left empty, this will block for the entire day for the days specified in daysOfWeek. Structure is documented below.
daysOfWeeks List<String>
Optional. Days of week. If left empty, all days of the week will be included. Each value may be one of: MONDAY, TUESDAY, WEDNESDAY, THURSDAY, FRIDAY, SATURDAY, SUNDAY.
endTime Property Map
Optional. End time (exclusive). Use 24:00 to indicate midnight. If you specify endTime you must also specify startTime. If left empty, this will block for the entire day for the days specified in daysOfWeek. Structure is documented below.
startTime Property Map
Optional. Start time (inclusive). Use 00:00 for the beginning of the day. If you specify startTime you must also specify endTime. If left empty, this will block for the entire day for the days specified in daysOfWeek. Structure is documented below.

DeployPolicyRuleRolloutRestrictionTimeWindowsWeeklyWindowEndTime
, DeployPolicyRuleRolloutRestrictionTimeWindowsWeeklyWindowEndTimeArgs

Hours int
Hours of a day in 24 hour format. Must be greater than or equal to 0 and typically must be less than or equal to 23. An API may choose to allow the value "24:00:00" for scenarios like business closing time.
Minutes int
Minutes of an hour. Must be greater than or equal to 0 and less than or equal to 59.
Nanos int
Fractions of seconds, in nanoseconds. Must be greater than or equal to 0 and less than or equal to 999,999,999.


Seconds int
Seconds of a minute. Must be greater than or equal to 0 and typically must be less than or equal to 59. An API may allow the value 60 if it allows leap-seconds.
Hours int
Hours of a day in 24 hour format. Must be greater than or equal to 0 and typically must be less than or equal to 23. An API may choose to allow the value "24:00:00" for scenarios like business closing time.
Minutes int
Minutes of an hour. Must be greater than or equal to 0 and less than or equal to 59.
Nanos int
Fractions of seconds, in nanoseconds. Must be greater than or equal to 0 and less than or equal to 999,999,999.


Seconds int
Seconds of a minute. Must be greater than or equal to 0 and typically must be less than or equal to 59. An API may allow the value 60 if it allows leap-seconds.
hours Integer
Hours of a day in 24 hour format. Must be greater than or equal to 0 and typically must be less than or equal to 23. An API may choose to allow the value "24:00:00" for scenarios like business closing time.
minutes Integer
Minutes of an hour. Must be greater than or equal to 0 and less than or equal to 59.
nanos Integer
Fractions of seconds, in nanoseconds. Must be greater than or equal to 0 and less than or equal to 999,999,999.


seconds Integer
Seconds of a minute. Must be greater than or equal to 0 and typically must be less than or equal to 59. An API may allow the value 60 if it allows leap-seconds.
hours number
Hours of a day in 24 hour format. Must be greater than or equal to 0 and typically must be less than or equal to 23. An API may choose to allow the value "24:00:00" for scenarios like business closing time.
minutes number
Minutes of an hour. Must be greater than or equal to 0 and less than or equal to 59.
nanos number
Fractions of seconds, in nanoseconds. Must be greater than or equal to 0 and less than or equal to 999,999,999.


seconds number
Seconds of a minute. Must be greater than or equal to 0 and typically must be less than or equal to 59. An API may allow the value 60 if it allows leap-seconds.
hours int
Hours of a day in 24 hour format. Must be greater than or equal to 0 and typically must be less than or equal to 23. An API may choose to allow the value "24:00:00" for scenarios like business closing time.
minutes int
Minutes of an hour. Must be greater than or equal to 0 and less than or equal to 59.
nanos int
Fractions of seconds, in nanoseconds. Must be greater than or equal to 0 and less than or equal to 999,999,999.


seconds int
Seconds of a minute. Must be greater than or equal to 0 and typically must be less than or equal to 59. An API may allow the value 60 if it allows leap-seconds.
hours Number
Hours of a day in 24 hour format. Must be greater than or equal to 0 and typically must be less than or equal to 23. An API may choose to allow the value "24:00:00" for scenarios like business closing time.
minutes Number
Minutes of an hour. Must be greater than or equal to 0 and less than or equal to 59.
nanos Number
Fractions of seconds, in nanoseconds. Must be greater than or equal to 0 and less than or equal to 999,999,999.


seconds Number
Seconds of a minute. Must be greater than or equal to 0 and typically must be less than or equal to 59. An API may allow the value 60 if it allows leap-seconds.

DeployPolicyRuleRolloutRestrictionTimeWindowsWeeklyWindowStartTime
, DeployPolicyRuleRolloutRestrictionTimeWindowsWeeklyWindowStartTimeArgs

Hours int
Hours of a day in 24 hour format. Must be greater than or equal to 0 and typically must be less than or equal to 23. An API may choose to allow the value "24:00:00" for scenarios like business closing time.
Minutes int
Minutes of an hour. Must be greater than or equal to 0 and less than or equal to 59.
Nanos int
Fractions of seconds, in nanoseconds. Must be greater than or equal to 0 and less than or equal to 999,999,999.
Seconds int
Seconds of a minute. Must be greater than or equal to 0 and typically must be less than or equal to 59. An API may allow the value 60 if it allows leap-seconds.
Hours int
Hours of a day in 24 hour format. Must be greater than or equal to 0 and typically must be less than or equal to 23. An API may choose to allow the value "24:00:00" for scenarios like business closing time.
Minutes int
Minutes of an hour. Must be greater than or equal to 0 and less than or equal to 59.
Nanos int
Fractions of seconds, in nanoseconds. Must be greater than or equal to 0 and less than or equal to 999,999,999.
Seconds int
Seconds of a minute. Must be greater than or equal to 0 and typically must be less than or equal to 59. An API may allow the value 60 if it allows leap-seconds.
hours Integer
Hours of a day in 24 hour format. Must be greater than or equal to 0 and typically must be less than or equal to 23. An API may choose to allow the value "24:00:00" for scenarios like business closing time.
minutes Integer
Minutes of an hour. Must be greater than or equal to 0 and less than or equal to 59.
nanos Integer
Fractions of seconds, in nanoseconds. Must be greater than or equal to 0 and less than or equal to 999,999,999.
seconds Integer
Seconds of a minute. Must be greater than or equal to 0 and typically must be less than or equal to 59. An API may allow the value 60 if it allows leap-seconds.
hours number
Hours of a day in 24 hour format. Must be greater than or equal to 0 and typically must be less than or equal to 23. An API may choose to allow the value "24:00:00" for scenarios like business closing time.
minutes number
Minutes of an hour. Must be greater than or equal to 0 and less than or equal to 59.
nanos number
Fractions of seconds, in nanoseconds. Must be greater than or equal to 0 and less than or equal to 999,999,999.
seconds number
Seconds of a minute. Must be greater than or equal to 0 and typically must be less than or equal to 59. An API may allow the value 60 if it allows leap-seconds.
hours int
Hours of a day in 24 hour format. Must be greater than or equal to 0 and typically must be less than or equal to 23. An API may choose to allow the value "24:00:00" for scenarios like business closing time.
minutes int
Minutes of an hour. Must be greater than or equal to 0 and less than or equal to 59.
nanos int
Fractions of seconds, in nanoseconds. Must be greater than or equal to 0 and less than or equal to 999,999,999.
seconds int
Seconds of a minute. Must be greater than or equal to 0 and typically must be less than or equal to 59. An API may allow the value 60 if it allows leap-seconds.
hours Number
Hours of a day in 24 hour format. Must be greater than or equal to 0 and typically must be less than or equal to 23. An API may choose to allow the value "24:00:00" for scenarios like business closing time.
minutes Number
Minutes of an hour. Must be greater than or equal to 0 and less than or equal to 59.
nanos Number
Fractions of seconds, in nanoseconds. Must be greater than or equal to 0 and less than or equal to 999,999,999.
seconds Number
Seconds of a minute. Must be greater than or equal to 0 and typically must be less than or equal to 59. An API may allow the value 60 if it allows leap-seconds.

DeployPolicySelector
, DeployPolicySelectorArgs

DeliveryPipeline DeployPolicySelectorDeliveryPipeline
Contains attributes about a delivery pipeline. Structure is documented below.
Target DeployPolicySelectorTarget
Contains attributes about a target. Structure is documented below.
DeliveryPipeline DeployPolicySelectorDeliveryPipeline
Contains attributes about a delivery pipeline. Structure is documented below.
Target DeployPolicySelectorTarget
Contains attributes about a target. Structure is documented below.
deliveryPipeline DeployPolicySelectorDeliveryPipeline
Contains attributes about a delivery pipeline. Structure is documented below.
target DeployPolicySelectorTarget
Contains attributes about a target. Structure is documented below.
deliveryPipeline DeployPolicySelectorDeliveryPipeline
Contains attributes about a delivery pipeline. Structure is documented below.
target DeployPolicySelectorTarget
Contains attributes about a target. Structure is documented below.
delivery_pipeline DeployPolicySelectorDeliveryPipeline
Contains attributes about a delivery pipeline. Structure is documented below.
target DeployPolicySelectorTarget
Contains attributes about a target. Structure is documented below.
deliveryPipeline Property Map
Contains attributes about a delivery pipeline. Structure is documented below.
target Property Map
Contains attributes about a target. Structure is documented below.

DeployPolicySelectorDeliveryPipeline
, DeployPolicySelectorDeliveryPipelineArgs

Id string
Optional. ID of the DeliveryPipeline. The value of this field could be one of the following:

  • The last segment of a pipeline name
  • "*", all delivery pipelines in a location
Labels Dictionary<string, string>
DeliveryPipeline labels.
Id string
Optional. ID of the DeliveryPipeline. The value of this field could be one of the following:

  • The last segment of a pipeline name
  • "*", all delivery pipelines in a location
Labels map[string]string
DeliveryPipeline labels.
id String
Optional. ID of the DeliveryPipeline. The value of this field could be one of the following:

  • The last segment of a pipeline name
  • "*", all delivery pipelines in a location
labels Map<String,String>
DeliveryPipeline labels.
id string
Optional. ID of the DeliveryPipeline. The value of this field could be one of the following:

  • The last segment of a pipeline name
  • "*", all delivery pipelines in a location
labels {[key: string]: string}
DeliveryPipeline labels.
id str
Optional. ID of the DeliveryPipeline. The value of this field could be one of the following:

  • The last segment of a pipeline name
  • "*", all delivery pipelines in a location
labels Mapping[str, str]
DeliveryPipeline labels.
id String
Optional. ID of the DeliveryPipeline. The value of this field could be one of the following:

  • The last segment of a pipeline name
  • "*", all delivery pipelines in a location
labels Map<String>
DeliveryPipeline labels.

DeployPolicySelectorTarget
, DeployPolicySelectorTargetArgs

Id string
ID of the Target. The value of this field could be one of the following: * The last segment of a target name. It only needs the ID to determine which target is being referred to * "*", all targets in a location.
Labels Dictionary<string, string>
Target labels.
Id string
ID of the Target. The value of this field could be one of the following: * The last segment of a target name. It only needs the ID to determine which target is being referred to * "*", all targets in a location.
Labels map[string]string
Target labels.
id String
ID of the Target. The value of this field could be one of the following: * The last segment of a target name. It only needs the ID to determine which target is being referred to * "*", all targets in a location.
labels Map<String,String>
Target labels.
id string
ID of the Target. The value of this field could be one of the following: * The last segment of a target name. It only needs the ID to determine which target is being referred to * "*", all targets in a location.
labels {[key: string]: string}
Target labels.
id str
ID of the Target. The value of this field could be one of the following: * The last segment of a target name. It only needs the ID to determine which target is being referred to * "*", all targets in a location.
labels Mapping[str, str]
Target labels.
id String
ID of the Target. The value of this field could be one of the following: * The last segment of a target name. It only needs the ID to determine which target is being referred to * "*", all targets in a location.
labels Map<String>
Target labels.

Import

DeployPolicy can be imported using any of these accepted formats:

  • projects/{{project}}/locations/{{location}}/deployPolicies/{{name}}

  • {{project}}/{{location}}/{{name}}

  • {{location}}/{{name}}

When using the pulumi import command, DeployPolicy can be imported using one of the formats above. For example:

$ pulumi import gcp:clouddeploy/deployPolicy:DeployPolicy default projects/{{project}}/locations/{{location}}/deployPolicies/{{name}}
Copy
$ pulumi import gcp:clouddeploy/deployPolicy:DeployPolicy default {{project}}/{{location}}/{{name}}
Copy
$ pulumi import gcp:clouddeploy/deployPolicy:DeployPolicy default {{location}}/{{name}}
Copy

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

Package Details

Repository
Google Cloud (GCP) Classic pulumi/pulumi-gcp
License
Apache-2.0
Notes
This Pulumi package is based on the google-beta Terraform Provider.