gcp.osconfig.PatchDeployment
Explore with Pulumi AI
Patch deployments are configurations that individual patch jobs use to complete a patch. These configurations include instance filter, package repository settings, and a schedule.
To get more information about PatchDeployment, see:
- API documentation
- How-to Guides
Example Usage
Os Config Patch Deployment Basic
import * as pulumi from "@pulumi/pulumi";
import * as gcp from "@pulumi/gcp";
const patch = new gcp.osconfig.PatchDeployment("patch", {
patchDeploymentId: "patch-deploy",
instanceFilter: {
all: true,
},
oneTimeSchedule: {
executeTime: "2999-10-10T10:10:10.045123456Z",
},
});
import pulumi
import pulumi_gcp as gcp
patch = gcp.osconfig.PatchDeployment("patch",
patch_deployment_id="patch-deploy",
instance_filter=gcp.osconfig.PatchDeploymentInstanceFilterArgs(
all=True,
),
one_time_schedule=gcp.osconfig.PatchDeploymentOneTimeScheduleArgs(
execute_time="2999-10-10T10:10:10.045123456Z",
))
package main
import (
"github.com/pulumi/pulumi-gcp/sdk/v7/go/gcp/osconfig"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := osconfig.NewPatchDeployment(ctx, "patch", &osconfig.PatchDeploymentArgs{
PatchDeploymentId: pulumi.String("patch-deploy"),
InstanceFilter: &osconfig.PatchDeploymentInstanceFilterArgs{
All: pulumi.Bool(true),
},
OneTimeSchedule: &osconfig.PatchDeploymentOneTimeScheduleArgs{
ExecuteTime: pulumi.String("2999-10-10T10:10:10.045123456Z"),
},
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Gcp = Pulumi.Gcp;
return await Deployment.RunAsync(() =>
{
var patch = new Gcp.OsConfig.PatchDeployment("patch", new()
{
PatchDeploymentId = "patch-deploy",
InstanceFilter = new Gcp.OsConfig.Inputs.PatchDeploymentInstanceFilterArgs
{
All = true,
},
OneTimeSchedule = new Gcp.OsConfig.Inputs.PatchDeploymentOneTimeScheduleArgs
{
ExecuteTime = "2999-10-10T10:10:10.045123456Z",
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.gcp.osconfig.PatchDeployment;
import com.pulumi.gcp.osconfig.PatchDeploymentArgs;
import com.pulumi.gcp.osconfig.inputs.PatchDeploymentInstanceFilterArgs;
import com.pulumi.gcp.osconfig.inputs.PatchDeploymentOneTimeScheduleArgs;
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 patch = new PatchDeployment("patch", PatchDeploymentArgs.builder()
.patchDeploymentId("patch-deploy")
.instanceFilter(PatchDeploymentInstanceFilterArgs.builder()
.all(true)
.build())
.oneTimeSchedule(PatchDeploymentOneTimeScheduleArgs.builder()
.executeTime("2999-10-10T10:10:10.045123456Z")
.build())
.build());
}
}
resources:
patch:
type: gcp:osconfig:PatchDeployment
properties:
patchDeploymentId: patch-deploy
instanceFilter:
all: true
oneTimeSchedule:
executeTime: 2999-10-10T10:10:10.045123456Z
Os Config Patch Deployment Daily
import * as pulumi from "@pulumi/pulumi";
import * as gcp from "@pulumi/gcp";
const patch = new gcp.osconfig.PatchDeployment("patch", {
patchDeploymentId: "patch-deploy",
instanceFilter: {
all: true,
},
recurringSchedule: {
timeZone: {
id: "America/New_York",
},
timeOfDay: {
hours: 0,
minutes: 30,
seconds: 30,
nanos: 20,
},
},
});
import pulumi
import pulumi_gcp as gcp
patch = gcp.osconfig.PatchDeployment("patch",
patch_deployment_id="patch-deploy",
instance_filter=gcp.osconfig.PatchDeploymentInstanceFilterArgs(
all=True,
),
recurring_schedule=gcp.osconfig.PatchDeploymentRecurringScheduleArgs(
time_zone=gcp.osconfig.PatchDeploymentRecurringScheduleTimeZoneArgs(
id="America/New_York",
),
time_of_day=gcp.osconfig.PatchDeploymentRecurringScheduleTimeOfDayArgs(
hours=0,
minutes=30,
seconds=30,
nanos=20,
),
))
package main
import (
"github.com/pulumi/pulumi-gcp/sdk/v7/go/gcp/osconfig"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := osconfig.NewPatchDeployment(ctx, "patch", &osconfig.PatchDeploymentArgs{
PatchDeploymentId: pulumi.String("patch-deploy"),
InstanceFilter: &osconfig.PatchDeploymentInstanceFilterArgs{
All: pulumi.Bool(true),
},
RecurringSchedule: &osconfig.PatchDeploymentRecurringScheduleArgs{
TimeZone: &osconfig.PatchDeploymentRecurringScheduleTimeZoneArgs{
Id: pulumi.String("America/New_York"),
},
TimeOfDay: &osconfig.PatchDeploymentRecurringScheduleTimeOfDayArgs{
Hours: pulumi.Int(0),
Minutes: pulumi.Int(30),
Seconds: pulumi.Int(30),
Nanos: pulumi.Int(20),
},
},
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Gcp = Pulumi.Gcp;
return await Deployment.RunAsync(() =>
{
var patch = new Gcp.OsConfig.PatchDeployment("patch", new()
{
PatchDeploymentId = "patch-deploy",
InstanceFilter = new Gcp.OsConfig.Inputs.PatchDeploymentInstanceFilterArgs
{
All = true,
},
RecurringSchedule = new Gcp.OsConfig.Inputs.PatchDeploymentRecurringScheduleArgs
{
TimeZone = new Gcp.OsConfig.Inputs.PatchDeploymentRecurringScheduleTimeZoneArgs
{
Id = "America/New_York",
},
TimeOfDay = new Gcp.OsConfig.Inputs.PatchDeploymentRecurringScheduleTimeOfDayArgs
{
Hours = 0,
Minutes = 30,
Seconds = 30,
Nanos = 20,
},
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.gcp.osconfig.PatchDeployment;
import com.pulumi.gcp.osconfig.PatchDeploymentArgs;
import com.pulumi.gcp.osconfig.inputs.PatchDeploymentInstanceFilterArgs;
import com.pulumi.gcp.osconfig.inputs.PatchDeploymentRecurringScheduleArgs;
import com.pulumi.gcp.osconfig.inputs.PatchDeploymentRecurringScheduleTimeZoneArgs;
import com.pulumi.gcp.osconfig.inputs.PatchDeploymentRecurringScheduleTimeOfDayArgs;
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 patch = new PatchDeployment("patch", PatchDeploymentArgs.builder()
.patchDeploymentId("patch-deploy")
.instanceFilter(PatchDeploymentInstanceFilterArgs.builder()
.all(true)
.build())
.recurringSchedule(PatchDeploymentRecurringScheduleArgs.builder()
.timeZone(PatchDeploymentRecurringScheduleTimeZoneArgs.builder()
.id("America/New_York")
.build())
.timeOfDay(PatchDeploymentRecurringScheduleTimeOfDayArgs.builder()
.hours(0)
.minutes(30)
.seconds(30)
.nanos(20)
.build())
.build())
.build());
}
}
resources:
patch:
type: gcp:osconfig:PatchDeployment
properties:
patchDeploymentId: patch-deploy
instanceFilter:
all: true
recurringSchedule:
timeZone:
id: America/New_York
timeOfDay:
hours: 0
minutes: 30
seconds: 30
nanos: 20
Os Config Patch Deployment Daily Midnight
import * as pulumi from "@pulumi/pulumi";
import * as gcp from "@pulumi/gcp";
const patch = new gcp.osconfig.PatchDeployment("patch", {
patchDeploymentId: "patch-deploy",
instanceFilter: {
all: true,
},
recurringSchedule: {
timeZone: {
id: "America/New_York",
},
timeOfDay: {
hours: 0,
minutes: 0,
seconds: 0,
nanos: 0,
},
},
});
import pulumi
import pulumi_gcp as gcp
patch = gcp.osconfig.PatchDeployment("patch",
patch_deployment_id="patch-deploy",
instance_filter=gcp.osconfig.PatchDeploymentInstanceFilterArgs(
all=True,
),
recurring_schedule=gcp.osconfig.PatchDeploymentRecurringScheduleArgs(
time_zone=gcp.osconfig.PatchDeploymentRecurringScheduleTimeZoneArgs(
id="America/New_York",
),
time_of_day=gcp.osconfig.PatchDeploymentRecurringScheduleTimeOfDayArgs(
hours=0,
minutes=0,
seconds=0,
nanos=0,
),
))
package main
import (
"github.com/pulumi/pulumi-gcp/sdk/v7/go/gcp/osconfig"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := osconfig.NewPatchDeployment(ctx, "patch", &osconfig.PatchDeploymentArgs{
PatchDeploymentId: pulumi.String("patch-deploy"),
InstanceFilter: &osconfig.PatchDeploymentInstanceFilterArgs{
All: pulumi.Bool(true),
},
RecurringSchedule: &osconfig.PatchDeploymentRecurringScheduleArgs{
TimeZone: &osconfig.PatchDeploymentRecurringScheduleTimeZoneArgs{
Id: pulumi.String("America/New_York"),
},
TimeOfDay: &osconfig.PatchDeploymentRecurringScheduleTimeOfDayArgs{
Hours: pulumi.Int(0),
Minutes: pulumi.Int(0),
Seconds: pulumi.Int(0),
Nanos: pulumi.Int(0),
},
},
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Gcp = Pulumi.Gcp;
return await Deployment.RunAsync(() =>
{
var patch = new Gcp.OsConfig.PatchDeployment("patch", new()
{
PatchDeploymentId = "patch-deploy",
InstanceFilter = new Gcp.OsConfig.Inputs.PatchDeploymentInstanceFilterArgs
{
All = true,
},
RecurringSchedule = new Gcp.OsConfig.Inputs.PatchDeploymentRecurringScheduleArgs
{
TimeZone = new Gcp.OsConfig.Inputs.PatchDeploymentRecurringScheduleTimeZoneArgs
{
Id = "America/New_York",
},
TimeOfDay = new Gcp.OsConfig.Inputs.PatchDeploymentRecurringScheduleTimeOfDayArgs
{
Hours = 0,
Minutes = 0,
Seconds = 0,
Nanos = 0,
},
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.gcp.osconfig.PatchDeployment;
import com.pulumi.gcp.osconfig.PatchDeploymentArgs;
import com.pulumi.gcp.osconfig.inputs.PatchDeploymentInstanceFilterArgs;
import com.pulumi.gcp.osconfig.inputs.PatchDeploymentRecurringScheduleArgs;
import com.pulumi.gcp.osconfig.inputs.PatchDeploymentRecurringScheduleTimeZoneArgs;
import com.pulumi.gcp.osconfig.inputs.PatchDeploymentRecurringScheduleTimeOfDayArgs;
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 patch = new PatchDeployment("patch", PatchDeploymentArgs.builder()
.patchDeploymentId("patch-deploy")
.instanceFilter(PatchDeploymentInstanceFilterArgs.builder()
.all(true)
.build())
.recurringSchedule(PatchDeploymentRecurringScheduleArgs.builder()
.timeZone(PatchDeploymentRecurringScheduleTimeZoneArgs.builder()
.id("America/New_York")
.build())
.timeOfDay(PatchDeploymentRecurringScheduleTimeOfDayArgs.builder()
.hours(0)
.minutes(0)
.seconds(0)
.nanos(0)
.build())
.build())
.build());
}
}
resources:
patch:
type: gcp:osconfig:PatchDeployment
properties:
patchDeploymentId: patch-deploy
instanceFilter:
all: true
recurringSchedule:
timeZone:
id: America/New_York
timeOfDay:
hours: 0
minutes: 0
seconds: 0
nanos: 0
Os Config Patch Deployment Instance
import * as pulumi from "@pulumi/pulumi";
import * as gcp from "@pulumi/gcp";
const myImage = gcp.compute.getImage({
family: "debian-11",
project: "debian-cloud",
});
const foobar = new gcp.compute.Instance("foobar", {
name: "patch-deploy-inst",
machineType: "e2-medium",
zone: "us-central1-a",
canIpForward: false,
tags: [
"foo",
"bar",
],
bootDisk: {
initializeParams: {
image: myImage.then(myImage => myImage.selfLink),
},
},
networkInterfaces: [{
network: "default",
}],
metadata: {
foo: "bar",
},
});
const patch = new gcp.osconfig.PatchDeployment("patch", {
patchDeploymentId: "patch-deploy",
instanceFilter: {
instances: [foobar.id],
},
patchConfig: {
yum: {
security: true,
minimal: true,
excludes: ["bash"],
},
},
recurringSchedule: {
timeZone: {
id: "America/New_York",
},
timeOfDay: {
hours: 0,
minutes: 30,
seconds: 30,
nanos: 20,
},
monthly: {
monthDay: 1,
},
},
});
import pulumi
import pulumi_gcp as gcp
my_image = gcp.compute.get_image(family="debian-11",
project="debian-cloud")
foobar = gcp.compute.Instance("foobar",
name="patch-deploy-inst",
machine_type="e2-medium",
zone="us-central1-a",
can_ip_forward=False,
tags=[
"foo",
"bar",
],
boot_disk=gcp.compute.InstanceBootDiskArgs(
initialize_params=gcp.compute.InstanceBootDiskInitializeParamsArgs(
image=my_image.self_link,
),
),
network_interfaces=[gcp.compute.InstanceNetworkInterfaceArgs(
network="default",
)],
metadata={
"foo": "bar",
})
patch = gcp.osconfig.PatchDeployment("patch",
patch_deployment_id="patch-deploy",
instance_filter=gcp.osconfig.PatchDeploymentInstanceFilterArgs(
instances=[foobar.id],
),
patch_config=gcp.osconfig.PatchDeploymentPatchConfigArgs(
yum=gcp.osconfig.PatchDeploymentPatchConfigYumArgs(
security=True,
minimal=True,
excludes=["bash"],
),
),
recurring_schedule=gcp.osconfig.PatchDeploymentRecurringScheduleArgs(
time_zone=gcp.osconfig.PatchDeploymentRecurringScheduleTimeZoneArgs(
id="America/New_York",
),
time_of_day=gcp.osconfig.PatchDeploymentRecurringScheduleTimeOfDayArgs(
hours=0,
minutes=30,
seconds=30,
nanos=20,
),
monthly=gcp.osconfig.PatchDeploymentRecurringScheduleMonthlyArgs(
month_day=1,
),
))
package main
import (
"github.com/pulumi/pulumi-gcp/sdk/v7/go/gcp/compute"
"github.com/pulumi/pulumi-gcp/sdk/v7/go/gcp/osconfig"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
myImage, err := compute.LookupImage(ctx, &compute.LookupImageArgs{
Family: pulumi.StringRef("debian-11"),
Project: pulumi.StringRef("debian-cloud"),
}, nil)
if err != nil {
return err
}
foobar, err := compute.NewInstance(ctx, "foobar", &compute.InstanceArgs{
Name: pulumi.String("patch-deploy-inst"),
MachineType: pulumi.String("e2-medium"),
Zone: pulumi.String("us-central1-a"),
CanIpForward: pulumi.Bool(false),
Tags: pulumi.StringArray{
pulumi.String("foo"),
pulumi.String("bar"),
},
BootDisk: &compute.InstanceBootDiskArgs{
InitializeParams: &compute.InstanceBootDiskInitializeParamsArgs{
Image: pulumi.String(myImage.SelfLink),
},
},
NetworkInterfaces: compute.InstanceNetworkInterfaceArray{
&compute.InstanceNetworkInterfaceArgs{
Network: pulumi.String("default"),
},
},
Metadata: pulumi.StringMap{
"foo": pulumi.String("bar"),
},
})
if err != nil {
return err
}
_, err = osconfig.NewPatchDeployment(ctx, "patch", &osconfig.PatchDeploymentArgs{
PatchDeploymentId: pulumi.String("patch-deploy"),
InstanceFilter: &osconfig.PatchDeploymentInstanceFilterArgs{
Instances: pulumi.StringArray{
foobar.ID(),
},
},
PatchConfig: &osconfig.PatchDeploymentPatchConfigArgs{
Yum: &osconfig.PatchDeploymentPatchConfigYumArgs{
Security: pulumi.Bool(true),
Minimal: pulumi.Bool(true),
Excludes: pulumi.StringArray{
pulumi.String("bash"),
},
},
},
RecurringSchedule: &osconfig.PatchDeploymentRecurringScheduleArgs{
TimeZone: &osconfig.PatchDeploymentRecurringScheduleTimeZoneArgs{
Id: pulumi.String("America/New_York"),
},
TimeOfDay: &osconfig.PatchDeploymentRecurringScheduleTimeOfDayArgs{
Hours: pulumi.Int(0),
Minutes: pulumi.Int(30),
Seconds: pulumi.Int(30),
Nanos: pulumi.Int(20),
},
Monthly: &osconfig.PatchDeploymentRecurringScheduleMonthlyArgs{
MonthDay: pulumi.Int(1),
},
},
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Gcp = Pulumi.Gcp;
return await Deployment.RunAsync(() =>
{
var myImage = Gcp.Compute.GetImage.Invoke(new()
{
Family = "debian-11",
Project = "debian-cloud",
});
var foobar = new Gcp.Compute.Instance("foobar", new()
{
Name = "patch-deploy-inst",
MachineType = "e2-medium",
Zone = "us-central1-a",
CanIpForward = false,
Tags = new[]
{
"foo",
"bar",
},
BootDisk = new Gcp.Compute.Inputs.InstanceBootDiskArgs
{
InitializeParams = new Gcp.Compute.Inputs.InstanceBootDiskInitializeParamsArgs
{
Image = myImage.Apply(getImageResult => getImageResult.SelfLink),
},
},
NetworkInterfaces = new[]
{
new Gcp.Compute.Inputs.InstanceNetworkInterfaceArgs
{
Network = "default",
},
},
Metadata =
{
{ "foo", "bar" },
},
});
var patch = new Gcp.OsConfig.PatchDeployment("patch", new()
{
PatchDeploymentId = "patch-deploy",
InstanceFilter = new Gcp.OsConfig.Inputs.PatchDeploymentInstanceFilterArgs
{
Instances = new[]
{
foobar.Id,
},
},
PatchConfig = new Gcp.OsConfig.Inputs.PatchDeploymentPatchConfigArgs
{
Yum = new Gcp.OsConfig.Inputs.PatchDeploymentPatchConfigYumArgs
{
Security = true,
Minimal = true,
Excludes = new[]
{
"bash",
},
},
},
RecurringSchedule = new Gcp.OsConfig.Inputs.PatchDeploymentRecurringScheduleArgs
{
TimeZone = new Gcp.OsConfig.Inputs.PatchDeploymentRecurringScheduleTimeZoneArgs
{
Id = "America/New_York",
},
TimeOfDay = new Gcp.OsConfig.Inputs.PatchDeploymentRecurringScheduleTimeOfDayArgs
{
Hours = 0,
Minutes = 30,
Seconds = 30,
Nanos = 20,
},
Monthly = new Gcp.OsConfig.Inputs.PatchDeploymentRecurringScheduleMonthlyArgs
{
MonthDay = 1,
},
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.gcp.compute.ComputeFunctions;
import com.pulumi.gcp.compute.inputs.GetImageArgs;
import com.pulumi.gcp.compute.Instance;
import com.pulumi.gcp.compute.InstanceArgs;
import com.pulumi.gcp.compute.inputs.InstanceBootDiskArgs;
import com.pulumi.gcp.compute.inputs.InstanceBootDiskInitializeParamsArgs;
import com.pulumi.gcp.compute.inputs.InstanceNetworkInterfaceArgs;
import com.pulumi.gcp.osconfig.PatchDeployment;
import com.pulumi.gcp.osconfig.PatchDeploymentArgs;
import com.pulumi.gcp.osconfig.inputs.PatchDeploymentInstanceFilterArgs;
import com.pulumi.gcp.osconfig.inputs.PatchDeploymentPatchConfigArgs;
import com.pulumi.gcp.osconfig.inputs.PatchDeploymentPatchConfigYumArgs;
import com.pulumi.gcp.osconfig.inputs.PatchDeploymentRecurringScheduleArgs;
import com.pulumi.gcp.osconfig.inputs.PatchDeploymentRecurringScheduleTimeZoneArgs;
import com.pulumi.gcp.osconfig.inputs.PatchDeploymentRecurringScheduleTimeOfDayArgs;
import com.pulumi.gcp.osconfig.inputs.PatchDeploymentRecurringScheduleMonthlyArgs;
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) {
final var myImage = ComputeFunctions.getImage(GetImageArgs.builder()
.family("debian-11")
.project("debian-cloud")
.build());
var foobar = new Instance("foobar", InstanceArgs.builder()
.name("patch-deploy-inst")
.machineType("e2-medium")
.zone("us-central1-a")
.canIpForward(false)
.tags(
"foo",
"bar")
.bootDisk(InstanceBootDiskArgs.builder()
.initializeParams(InstanceBootDiskInitializeParamsArgs.builder()
.image(myImage.applyValue(getImageResult -> getImageResult.selfLink()))
.build())
.build())
.networkInterfaces(InstanceNetworkInterfaceArgs.builder()
.network("default")
.build())
.metadata(Map.of("foo", "bar"))
.build());
var patch = new PatchDeployment("patch", PatchDeploymentArgs.builder()
.patchDeploymentId("patch-deploy")
.instanceFilter(PatchDeploymentInstanceFilterArgs.builder()
.instances(foobar.id())
.build())
.patchConfig(PatchDeploymentPatchConfigArgs.builder()
.yum(PatchDeploymentPatchConfigYumArgs.builder()
.security(true)
.minimal(true)
.excludes("bash")
.build())
.build())
.recurringSchedule(PatchDeploymentRecurringScheduleArgs.builder()
.timeZone(PatchDeploymentRecurringScheduleTimeZoneArgs.builder()
.id("America/New_York")
.build())
.timeOfDay(PatchDeploymentRecurringScheduleTimeOfDayArgs.builder()
.hours(0)
.minutes(30)
.seconds(30)
.nanos(20)
.build())
.monthly(PatchDeploymentRecurringScheduleMonthlyArgs.builder()
.monthDay(1)
.build())
.build())
.build());
}
}
resources:
foobar:
type: gcp:compute:Instance
properties:
name: patch-deploy-inst
machineType: e2-medium
zone: us-central1-a
canIpForward: false
tags:
- foo
- bar
bootDisk:
initializeParams:
image: ${myImage.selfLink}
networkInterfaces:
- network: default
metadata:
foo: bar
patch:
type: gcp:osconfig:PatchDeployment
properties:
patchDeploymentId: patch-deploy
instanceFilter:
instances:
- ${foobar.id}
patchConfig:
yum:
security: true
minimal: true
excludes:
- bash
recurringSchedule:
timeZone:
id: America/New_York
timeOfDay:
hours: 0
minutes: 30
seconds: 30
nanos: 20
monthly:
monthDay: 1
variables:
myImage:
fn::invoke:
Function: gcp:compute:getImage
Arguments:
family: debian-11
project: debian-cloud
Os Config Patch Deployment Full
import * as pulumi from "@pulumi/pulumi";
import * as gcp from "@pulumi/gcp";
const patch = new gcp.osconfig.PatchDeployment("patch", {
patchDeploymentId: "patch-deploy",
instanceFilter: {
groupLabels: [{
labels: {
env: "dev",
app: "web",
},
}],
instanceNamePrefixes: ["test-"],
zones: [
"us-central1-a",
"us-central-1c",
],
},
patchConfig: {
migInstancesAllowed: true,
rebootConfig: "ALWAYS",
apt: {
type: "DIST",
excludes: ["python"],
},
yum: {
security: true,
minimal: true,
excludes: ["bash"],
},
goo: {
enabled: true,
},
zypper: {
categories: ["security"],
},
windowsUpdate: {
classifications: [
"CRITICAL",
"SECURITY",
"UPDATE",
],
excludes: ["5012170"],
},
preStep: {
linuxExecStepConfig: {
allowedSuccessCodes: [
0,
3,
],
localPath: "/tmp/pre_patch_script.sh",
},
windowsExecStepConfig: {
interpreter: "SHELL",
allowedSuccessCodes: [
0,
2,
],
localPath: "C:\\Users\\user\\pre-patch-script.cmd",
},
},
postStep: {
linuxExecStepConfig: {
gcsObject: {
bucket: "my-patch-scripts",
generationNumber: "1523477886880",
object: "linux/post_patch_script",
},
},
windowsExecStepConfig: {
interpreter: "POWERSHELL",
gcsObject: {
bucket: "my-patch-scripts",
generationNumber: "135920493447",
object: "windows/post_patch_script.ps1",
},
},
},
},
duration: "10s",
recurringSchedule: {
timeZone: {
id: "America/New_York",
},
timeOfDay: {
hours: 0,
minutes: 30,
seconds: 30,
nanos: 20,
},
monthly: {
weekDayOfMonth: {
weekOrdinal: -1,
dayOfWeek: "TUESDAY",
dayOffset: 3,
},
},
},
rollout: {
mode: "ZONE_BY_ZONE",
disruptionBudget: {
fixed: 1,
},
},
});
import pulumi
import pulumi_gcp as gcp
patch = gcp.osconfig.PatchDeployment("patch",
patch_deployment_id="patch-deploy",
instance_filter=gcp.osconfig.PatchDeploymentInstanceFilterArgs(
group_labels=[gcp.osconfig.PatchDeploymentInstanceFilterGroupLabelArgs(
labels={
"env": "dev",
"app": "web",
},
)],
instance_name_prefixes=["test-"],
zones=[
"us-central1-a",
"us-central-1c",
],
),
patch_config=gcp.osconfig.PatchDeploymentPatchConfigArgs(
mig_instances_allowed=True,
reboot_config="ALWAYS",
apt=gcp.osconfig.PatchDeploymentPatchConfigAptArgs(
type="DIST",
excludes=["python"],
),
yum=gcp.osconfig.PatchDeploymentPatchConfigYumArgs(
security=True,
minimal=True,
excludes=["bash"],
),
goo=gcp.osconfig.PatchDeploymentPatchConfigGooArgs(
enabled=True,
),
zypper=gcp.osconfig.PatchDeploymentPatchConfigZypperArgs(
categories=["security"],
),
windows_update=gcp.osconfig.PatchDeploymentPatchConfigWindowsUpdateArgs(
classifications=[
"CRITICAL",
"SECURITY",
"UPDATE",
],
excludes=["5012170"],
),
pre_step=gcp.osconfig.PatchDeploymentPatchConfigPreStepArgs(
linux_exec_step_config=gcp.osconfig.PatchDeploymentPatchConfigPreStepLinuxExecStepConfigArgs(
allowed_success_codes=[
0,
3,
],
local_path="/tmp/pre_patch_script.sh",
),
windows_exec_step_config=gcp.osconfig.PatchDeploymentPatchConfigPreStepWindowsExecStepConfigArgs(
interpreter="SHELL",
allowed_success_codes=[
0,
2,
],
local_path="C:\\Users\\user\\pre-patch-script.cmd",
),
),
post_step=gcp.osconfig.PatchDeploymentPatchConfigPostStepArgs(
linux_exec_step_config=gcp.osconfig.PatchDeploymentPatchConfigPostStepLinuxExecStepConfigArgs(
gcs_object=gcp.osconfig.PatchDeploymentPatchConfigPostStepLinuxExecStepConfigGcsObjectArgs(
bucket="my-patch-scripts",
generation_number="1523477886880",
object="linux/post_patch_script",
),
),
windows_exec_step_config=gcp.osconfig.PatchDeploymentPatchConfigPostStepWindowsExecStepConfigArgs(
interpreter="POWERSHELL",
gcs_object=gcp.osconfig.PatchDeploymentPatchConfigPostStepWindowsExecStepConfigGcsObjectArgs(
bucket="my-patch-scripts",
generation_number="135920493447",
object="windows/post_patch_script.ps1",
),
),
),
),
duration="10s",
recurring_schedule=gcp.osconfig.PatchDeploymentRecurringScheduleArgs(
time_zone=gcp.osconfig.PatchDeploymentRecurringScheduleTimeZoneArgs(
id="America/New_York",
),
time_of_day=gcp.osconfig.PatchDeploymentRecurringScheduleTimeOfDayArgs(
hours=0,
minutes=30,
seconds=30,
nanos=20,
),
monthly=gcp.osconfig.PatchDeploymentRecurringScheduleMonthlyArgs(
week_day_of_month=gcp.osconfig.PatchDeploymentRecurringScheduleMonthlyWeekDayOfMonthArgs(
week_ordinal=-1,
day_of_week="TUESDAY",
day_offset=3,
),
),
),
rollout=gcp.osconfig.PatchDeploymentRolloutArgs(
mode="ZONE_BY_ZONE",
disruption_budget=gcp.osconfig.PatchDeploymentRolloutDisruptionBudgetArgs(
fixed=1,
),
))
package main
import (
"github.com/pulumi/pulumi-gcp/sdk/v7/go/gcp/osconfig"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := osconfig.NewPatchDeployment(ctx, "patch", &osconfig.PatchDeploymentArgs{
PatchDeploymentId: pulumi.String("patch-deploy"),
InstanceFilter: &osconfig.PatchDeploymentInstanceFilterArgs{
GroupLabels: osconfig.PatchDeploymentInstanceFilterGroupLabelArray{
&osconfig.PatchDeploymentInstanceFilterGroupLabelArgs{
Labels: pulumi.StringMap{
"env": pulumi.String("dev"),
"app": pulumi.String("web"),
},
},
},
InstanceNamePrefixes: pulumi.StringArray{
pulumi.String("test-"),
},
Zones: pulumi.StringArray{
pulumi.String("us-central1-a"),
pulumi.String("us-central-1c"),
},
},
PatchConfig: &osconfig.PatchDeploymentPatchConfigArgs{
MigInstancesAllowed: pulumi.Bool(true),
RebootConfig: pulumi.String("ALWAYS"),
Apt: &osconfig.PatchDeploymentPatchConfigAptArgs{
Type: pulumi.String("DIST"),
Excludes: pulumi.StringArray{
pulumi.String("python"),
},
},
Yum: &osconfig.PatchDeploymentPatchConfigYumArgs{
Security: pulumi.Bool(true),
Minimal: pulumi.Bool(true),
Excludes: pulumi.StringArray{
pulumi.String("bash"),
},
},
Goo: &osconfig.PatchDeploymentPatchConfigGooArgs{
Enabled: pulumi.Bool(true),
},
Zypper: &osconfig.PatchDeploymentPatchConfigZypperArgs{
Categories: pulumi.StringArray{
pulumi.String("security"),
},
},
WindowsUpdate: &osconfig.PatchDeploymentPatchConfigWindowsUpdateArgs{
Classifications: pulumi.StringArray{
pulumi.String("CRITICAL"),
pulumi.String("SECURITY"),
pulumi.String("UPDATE"),
},
Excludes: pulumi.StringArray{
pulumi.String("5012170"),
},
},
PreStep: &osconfig.PatchDeploymentPatchConfigPreStepArgs{
LinuxExecStepConfig: &osconfig.PatchDeploymentPatchConfigPreStepLinuxExecStepConfigArgs{
AllowedSuccessCodes: pulumi.IntArray{
pulumi.Int(0),
pulumi.Int(3),
},
LocalPath: pulumi.String("/tmp/pre_patch_script.sh"),
},
WindowsExecStepConfig: &osconfig.PatchDeploymentPatchConfigPreStepWindowsExecStepConfigArgs{
Interpreter: pulumi.String("SHELL"),
AllowedSuccessCodes: pulumi.IntArray{
pulumi.Int(0),
pulumi.Int(2),
},
LocalPath: pulumi.String("C:\\Users\\user\\pre-patch-script.cmd"),
},
},
PostStep: &osconfig.PatchDeploymentPatchConfigPostStepArgs{
LinuxExecStepConfig: &osconfig.PatchDeploymentPatchConfigPostStepLinuxExecStepConfigArgs{
GcsObject: &osconfig.PatchDeploymentPatchConfigPostStepLinuxExecStepConfigGcsObjectArgs{
Bucket: pulumi.String("my-patch-scripts"),
GenerationNumber: pulumi.String("1523477886880"),
Object: pulumi.String("linux/post_patch_script"),
},
},
WindowsExecStepConfig: &osconfig.PatchDeploymentPatchConfigPostStepWindowsExecStepConfigArgs{
Interpreter: pulumi.String("POWERSHELL"),
GcsObject: &osconfig.PatchDeploymentPatchConfigPostStepWindowsExecStepConfigGcsObjectArgs{
Bucket: pulumi.String("my-patch-scripts"),
GenerationNumber: pulumi.String("135920493447"),
Object: pulumi.String("windows/post_patch_script.ps1"),
},
},
},
},
Duration: pulumi.String("10s"),
RecurringSchedule: &osconfig.PatchDeploymentRecurringScheduleArgs{
TimeZone: &osconfig.PatchDeploymentRecurringScheduleTimeZoneArgs{
Id: pulumi.String("America/New_York"),
},
TimeOfDay: &osconfig.PatchDeploymentRecurringScheduleTimeOfDayArgs{
Hours: pulumi.Int(0),
Minutes: pulumi.Int(30),
Seconds: pulumi.Int(30),
Nanos: pulumi.Int(20),
},
Monthly: &osconfig.PatchDeploymentRecurringScheduleMonthlyArgs{
WeekDayOfMonth: &osconfig.PatchDeploymentRecurringScheduleMonthlyWeekDayOfMonthArgs{
WeekOrdinal: -1,
DayOfWeek: pulumi.String("TUESDAY"),
DayOffset: pulumi.Int(3),
},
},
},
Rollout: &osconfig.PatchDeploymentRolloutArgs{
Mode: pulumi.String("ZONE_BY_ZONE"),
DisruptionBudget: &osconfig.PatchDeploymentRolloutDisruptionBudgetArgs{
Fixed: pulumi.Int(1),
},
},
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Gcp = Pulumi.Gcp;
return await Deployment.RunAsync(() =>
{
var patch = new Gcp.OsConfig.PatchDeployment("patch", new()
{
PatchDeploymentId = "patch-deploy",
InstanceFilter = new Gcp.OsConfig.Inputs.PatchDeploymentInstanceFilterArgs
{
GroupLabels = new[]
{
new Gcp.OsConfig.Inputs.PatchDeploymentInstanceFilterGroupLabelArgs
{
Labels =
{
{ "env", "dev" },
{ "app", "web" },
},
},
},
InstanceNamePrefixes = new[]
{
"test-",
},
Zones = new[]
{
"us-central1-a",
"us-central-1c",
},
},
PatchConfig = new Gcp.OsConfig.Inputs.PatchDeploymentPatchConfigArgs
{
MigInstancesAllowed = true,
RebootConfig = "ALWAYS",
Apt = new Gcp.OsConfig.Inputs.PatchDeploymentPatchConfigAptArgs
{
Type = "DIST",
Excludes = new[]
{
"python",
},
},
Yum = new Gcp.OsConfig.Inputs.PatchDeploymentPatchConfigYumArgs
{
Security = true,
Minimal = true,
Excludes = new[]
{
"bash",
},
},
Goo = new Gcp.OsConfig.Inputs.PatchDeploymentPatchConfigGooArgs
{
Enabled = true,
},
Zypper = new Gcp.OsConfig.Inputs.PatchDeploymentPatchConfigZypperArgs
{
Categories = new[]
{
"security",
},
},
WindowsUpdate = new Gcp.OsConfig.Inputs.PatchDeploymentPatchConfigWindowsUpdateArgs
{
Classifications = new[]
{
"CRITICAL",
"SECURITY",
"UPDATE",
},
Excludes = new[]
{
"5012170",
},
},
PreStep = new Gcp.OsConfig.Inputs.PatchDeploymentPatchConfigPreStepArgs
{
LinuxExecStepConfig = new Gcp.OsConfig.Inputs.PatchDeploymentPatchConfigPreStepLinuxExecStepConfigArgs
{
AllowedSuccessCodes = new[]
{
0,
3,
},
LocalPath = "/tmp/pre_patch_script.sh",
},
WindowsExecStepConfig = new Gcp.OsConfig.Inputs.PatchDeploymentPatchConfigPreStepWindowsExecStepConfigArgs
{
Interpreter = "SHELL",
AllowedSuccessCodes = new[]
{
0,
2,
},
LocalPath = "C:\\Users\\user\\pre-patch-script.cmd",
},
},
PostStep = new Gcp.OsConfig.Inputs.PatchDeploymentPatchConfigPostStepArgs
{
LinuxExecStepConfig = new Gcp.OsConfig.Inputs.PatchDeploymentPatchConfigPostStepLinuxExecStepConfigArgs
{
GcsObject = new Gcp.OsConfig.Inputs.PatchDeploymentPatchConfigPostStepLinuxExecStepConfigGcsObjectArgs
{
Bucket = "my-patch-scripts",
GenerationNumber = "1523477886880",
Object = "linux/post_patch_script",
},
},
WindowsExecStepConfig = new Gcp.OsConfig.Inputs.PatchDeploymentPatchConfigPostStepWindowsExecStepConfigArgs
{
Interpreter = "POWERSHELL",
GcsObject = new Gcp.OsConfig.Inputs.PatchDeploymentPatchConfigPostStepWindowsExecStepConfigGcsObjectArgs
{
Bucket = "my-patch-scripts",
GenerationNumber = "135920493447",
Object = "windows/post_patch_script.ps1",
},
},
},
},
Duration = "10s",
RecurringSchedule = new Gcp.OsConfig.Inputs.PatchDeploymentRecurringScheduleArgs
{
TimeZone = new Gcp.OsConfig.Inputs.PatchDeploymentRecurringScheduleTimeZoneArgs
{
Id = "America/New_York",
},
TimeOfDay = new Gcp.OsConfig.Inputs.PatchDeploymentRecurringScheduleTimeOfDayArgs
{
Hours = 0,
Minutes = 30,
Seconds = 30,
Nanos = 20,
},
Monthly = new Gcp.OsConfig.Inputs.PatchDeploymentRecurringScheduleMonthlyArgs
{
WeekDayOfMonth = new Gcp.OsConfig.Inputs.PatchDeploymentRecurringScheduleMonthlyWeekDayOfMonthArgs
{
WeekOrdinal = -1,
DayOfWeek = "TUESDAY",
DayOffset = 3,
},
},
},
Rollout = new Gcp.OsConfig.Inputs.PatchDeploymentRolloutArgs
{
Mode = "ZONE_BY_ZONE",
DisruptionBudget = new Gcp.OsConfig.Inputs.PatchDeploymentRolloutDisruptionBudgetArgs
{
Fixed = 1,
},
},
});
});
Coming soon!
resources:
patch:
type: gcp:osconfig:PatchDeployment
properties:
patchDeploymentId: patch-deploy
instanceFilter:
groupLabels:
- labels:
env: dev
app: web
instanceNamePrefixes:
- test-
zones:
- us-central1-a
- us-central-1c
patchConfig:
migInstancesAllowed: true
rebootConfig: ALWAYS
apt:
type: DIST
excludes:
- python
yum:
security: true
minimal: true
excludes:
- bash
goo:
enabled: true
zypper:
categories:
- security
windowsUpdate:
classifications:
- CRITICAL
- SECURITY
- UPDATE
excludes:
- '5012170'
preStep:
linuxExecStepConfig:
allowedSuccessCodes:
- 0
- 3
localPath: /tmp/pre_patch_script.sh
windowsExecStepConfig:
interpreter: SHELL
allowedSuccessCodes:
- 0
- 2
localPath: C:\Users\user\pre-patch-script.cmd
postStep:
linuxExecStepConfig:
gcsObject:
bucket: my-patch-scripts
generationNumber: '1523477886880'
object: linux/post_patch_script
windowsExecStepConfig:
interpreter: POWERSHELL
gcsObject:
bucket: my-patch-scripts
generationNumber: '135920493447'
object: windows/post_patch_script.ps1
duration: 10s
recurringSchedule:
timeZone:
id: America/New_York
timeOfDay:
hours: 0
minutes: 30
seconds: 30
nanos: 20
monthly:
weekDayOfMonth:
weekOrdinal: -1
dayOfWeek: TUESDAY
dayOffset: 3
rollout:
mode: ZONE_BY_ZONE
disruptionBudget:
fixed: 1
Create PatchDeployment Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new PatchDeployment(name: string, args: PatchDeploymentArgs, opts?: CustomResourceOptions);
@overload
def PatchDeployment(resource_name: str,
args: PatchDeploymentArgs,
opts: Optional[ResourceOptions] = None)
@overload
def PatchDeployment(resource_name: str,
opts: Optional[ResourceOptions] = None,
instance_filter: Optional[PatchDeploymentInstanceFilterArgs] = None,
patch_deployment_id: Optional[str] = None,
description: Optional[str] = None,
duration: Optional[str] = None,
one_time_schedule: Optional[PatchDeploymentOneTimeScheduleArgs] = None,
patch_config: Optional[PatchDeploymentPatchConfigArgs] = None,
project: Optional[str] = None,
recurring_schedule: Optional[PatchDeploymentRecurringScheduleArgs] = None,
rollout: Optional[PatchDeploymentRolloutArgs] = None)
func NewPatchDeployment(ctx *Context, name string, args PatchDeploymentArgs, opts ...ResourceOption) (*PatchDeployment, error)
public PatchDeployment(string name, PatchDeploymentArgs args, CustomResourceOptions? opts = null)
public PatchDeployment(String name, PatchDeploymentArgs args)
public PatchDeployment(String name, PatchDeploymentArgs args, CustomResourceOptions options)
type: gcp:osconfig:PatchDeployment
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args PatchDeploymentArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args PatchDeploymentArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args PatchDeploymentArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args PatchDeploymentArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args PatchDeploymentArgs
- 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 patchDeploymentResource = new Gcp.OsConfig.PatchDeployment("patchDeploymentResource", new()
{
InstanceFilter = new Gcp.OsConfig.Inputs.PatchDeploymentInstanceFilterArgs
{
All = false,
GroupLabels = new[]
{
new Gcp.OsConfig.Inputs.PatchDeploymentInstanceFilterGroupLabelArgs
{
Labels =
{
{ "string", "string" },
},
},
},
InstanceNamePrefixes = new[]
{
"string",
},
Instances = new[]
{
"string",
},
Zones = new[]
{
"string",
},
},
PatchDeploymentId = "string",
Description = "string",
Duration = "string",
OneTimeSchedule = new Gcp.OsConfig.Inputs.PatchDeploymentOneTimeScheduleArgs
{
ExecuteTime = "string",
},
PatchConfig = new Gcp.OsConfig.Inputs.PatchDeploymentPatchConfigArgs
{
Apt = new Gcp.OsConfig.Inputs.PatchDeploymentPatchConfigAptArgs
{
Excludes = new[]
{
"string",
},
ExclusivePackages = new[]
{
"string",
},
Type = "string",
},
Goo = new Gcp.OsConfig.Inputs.PatchDeploymentPatchConfigGooArgs
{
Enabled = false,
},
MigInstancesAllowed = false,
PostStep = new Gcp.OsConfig.Inputs.PatchDeploymentPatchConfigPostStepArgs
{
LinuxExecStepConfig = new Gcp.OsConfig.Inputs.PatchDeploymentPatchConfigPostStepLinuxExecStepConfigArgs
{
AllowedSuccessCodes = new[]
{
0,
},
GcsObject = new Gcp.OsConfig.Inputs.PatchDeploymentPatchConfigPostStepLinuxExecStepConfigGcsObjectArgs
{
Bucket = "string",
GenerationNumber = "string",
Object = "string",
},
Interpreter = "string",
LocalPath = "string",
},
WindowsExecStepConfig = new Gcp.OsConfig.Inputs.PatchDeploymentPatchConfigPostStepWindowsExecStepConfigArgs
{
AllowedSuccessCodes = new[]
{
0,
},
GcsObject = new Gcp.OsConfig.Inputs.PatchDeploymentPatchConfigPostStepWindowsExecStepConfigGcsObjectArgs
{
Bucket = "string",
GenerationNumber = "string",
Object = "string",
},
Interpreter = "string",
LocalPath = "string",
},
},
PreStep = new Gcp.OsConfig.Inputs.PatchDeploymentPatchConfigPreStepArgs
{
LinuxExecStepConfig = new Gcp.OsConfig.Inputs.PatchDeploymentPatchConfigPreStepLinuxExecStepConfigArgs
{
AllowedSuccessCodes = new[]
{
0,
},
GcsObject = new Gcp.OsConfig.Inputs.PatchDeploymentPatchConfigPreStepLinuxExecStepConfigGcsObjectArgs
{
Bucket = "string",
GenerationNumber = "string",
Object = "string",
},
Interpreter = "string",
LocalPath = "string",
},
WindowsExecStepConfig = new Gcp.OsConfig.Inputs.PatchDeploymentPatchConfigPreStepWindowsExecStepConfigArgs
{
AllowedSuccessCodes = new[]
{
0,
},
GcsObject = new Gcp.OsConfig.Inputs.PatchDeploymentPatchConfigPreStepWindowsExecStepConfigGcsObjectArgs
{
Bucket = "string",
GenerationNumber = "string",
Object = "string",
},
Interpreter = "string",
LocalPath = "string",
},
},
RebootConfig = "string",
WindowsUpdate = new Gcp.OsConfig.Inputs.PatchDeploymentPatchConfigWindowsUpdateArgs
{
Classifications = new[]
{
"string",
},
Excludes = new[]
{
"string",
},
ExclusivePatches = new[]
{
"string",
},
},
Yum = new Gcp.OsConfig.Inputs.PatchDeploymentPatchConfigYumArgs
{
Excludes = new[]
{
"string",
},
ExclusivePackages = new[]
{
"string",
},
Minimal = false,
Security = false,
},
Zypper = new Gcp.OsConfig.Inputs.PatchDeploymentPatchConfigZypperArgs
{
Categories = new[]
{
"string",
},
Excludes = new[]
{
"string",
},
ExclusivePatches = new[]
{
"string",
},
Severities = new[]
{
"string",
},
WithOptional = false,
WithUpdate = false,
},
},
Project = "string",
RecurringSchedule = new Gcp.OsConfig.Inputs.PatchDeploymentRecurringScheduleArgs
{
TimeOfDay = new Gcp.OsConfig.Inputs.PatchDeploymentRecurringScheduleTimeOfDayArgs
{
Hours = 0,
Minutes = 0,
Nanos = 0,
Seconds = 0,
},
TimeZone = new Gcp.OsConfig.Inputs.PatchDeploymentRecurringScheduleTimeZoneArgs
{
Id = "string",
Version = "string",
},
EndTime = "string",
LastExecuteTime = "string",
Monthly = new Gcp.OsConfig.Inputs.PatchDeploymentRecurringScheduleMonthlyArgs
{
MonthDay = 0,
WeekDayOfMonth = new Gcp.OsConfig.Inputs.PatchDeploymentRecurringScheduleMonthlyWeekDayOfMonthArgs
{
DayOfWeek = "string",
WeekOrdinal = 0,
DayOffset = 0,
},
},
NextExecuteTime = "string",
StartTime = "string",
Weekly = new Gcp.OsConfig.Inputs.PatchDeploymentRecurringScheduleWeeklyArgs
{
DayOfWeek = "string",
},
},
Rollout = new Gcp.OsConfig.Inputs.PatchDeploymentRolloutArgs
{
DisruptionBudget = new Gcp.OsConfig.Inputs.PatchDeploymentRolloutDisruptionBudgetArgs
{
Fixed = 0,
Percentage = 0,
},
Mode = "string",
},
});
example, err := osconfig.NewPatchDeployment(ctx, "patchDeploymentResource", &osconfig.PatchDeploymentArgs{
InstanceFilter: &osconfig.PatchDeploymentInstanceFilterArgs{
All: pulumi.Bool(false),
GroupLabels: osconfig.PatchDeploymentInstanceFilterGroupLabelArray{
&osconfig.PatchDeploymentInstanceFilterGroupLabelArgs{
Labels: pulumi.StringMap{
"string": pulumi.String("string"),
},
},
},
InstanceNamePrefixes: pulumi.StringArray{
pulumi.String("string"),
},
Instances: pulumi.StringArray{
pulumi.String("string"),
},
Zones: pulumi.StringArray{
pulumi.String("string"),
},
},
PatchDeploymentId: pulumi.String("string"),
Description: pulumi.String("string"),
Duration: pulumi.String("string"),
OneTimeSchedule: &osconfig.PatchDeploymentOneTimeScheduleArgs{
ExecuteTime: pulumi.String("string"),
},
PatchConfig: &osconfig.PatchDeploymentPatchConfigArgs{
Apt: &osconfig.PatchDeploymentPatchConfigAptArgs{
Excludes: pulumi.StringArray{
pulumi.String("string"),
},
ExclusivePackages: pulumi.StringArray{
pulumi.String("string"),
},
Type: pulumi.String("string"),
},
Goo: &osconfig.PatchDeploymentPatchConfigGooArgs{
Enabled: pulumi.Bool(false),
},
MigInstancesAllowed: pulumi.Bool(false),
PostStep: &osconfig.PatchDeploymentPatchConfigPostStepArgs{
LinuxExecStepConfig: &osconfig.PatchDeploymentPatchConfigPostStepLinuxExecStepConfigArgs{
AllowedSuccessCodes: pulumi.IntArray{
pulumi.Int(0),
},
GcsObject: &osconfig.PatchDeploymentPatchConfigPostStepLinuxExecStepConfigGcsObjectArgs{
Bucket: pulumi.String("string"),
GenerationNumber: pulumi.String("string"),
Object: pulumi.String("string"),
},
Interpreter: pulumi.String("string"),
LocalPath: pulumi.String("string"),
},
WindowsExecStepConfig: &osconfig.PatchDeploymentPatchConfigPostStepWindowsExecStepConfigArgs{
AllowedSuccessCodes: pulumi.IntArray{
pulumi.Int(0),
},
GcsObject: &osconfig.PatchDeploymentPatchConfigPostStepWindowsExecStepConfigGcsObjectArgs{
Bucket: pulumi.String("string"),
GenerationNumber: pulumi.String("string"),
Object: pulumi.String("string"),
},
Interpreter: pulumi.String("string"),
LocalPath: pulumi.String("string"),
},
},
PreStep: &osconfig.PatchDeploymentPatchConfigPreStepArgs{
LinuxExecStepConfig: &osconfig.PatchDeploymentPatchConfigPreStepLinuxExecStepConfigArgs{
AllowedSuccessCodes: pulumi.IntArray{
pulumi.Int(0),
},
GcsObject: &osconfig.PatchDeploymentPatchConfigPreStepLinuxExecStepConfigGcsObjectArgs{
Bucket: pulumi.String("string"),
GenerationNumber: pulumi.String("string"),
Object: pulumi.String("string"),
},
Interpreter: pulumi.String("string"),
LocalPath: pulumi.String("string"),
},
WindowsExecStepConfig: &osconfig.PatchDeploymentPatchConfigPreStepWindowsExecStepConfigArgs{
AllowedSuccessCodes: pulumi.IntArray{
pulumi.Int(0),
},
GcsObject: &osconfig.PatchDeploymentPatchConfigPreStepWindowsExecStepConfigGcsObjectArgs{
Bucket: pulumi.String("string"),
GenerationNumber: pulumi.String("string"),
Object: pulumi.String("string"),
},
Interpreter: pulumi.String("string"),
LocalPath: pulumi.String("string"),
},
},
RebootConfig: pulumi.String("string"),
WindowsUpdate: &osconfig.PatchDeploymentPatchConfigWindowsUpdateArgs{
Classifications: pulumi.StringArray{
pulumi.String("string"),
},
Excludes: pulumi.StringArray{
pulumi.String("string"),
},
ExclusivePatches: pulumi.StringArray{
pulumi.String("string"),
},
},
Yum: &osconfig.PatchDeploymentPatchConfigYumArgs{
Excludes: pulumi.StringArray{
pulumi.String("string"),
},
ExclusivePackages: pulumi.StringArray{
pulumi.String("string"),
},
Minimal: pulumi.Bool(false),
Security: pulumi.Bool(false),
},
Zypper: &osconfig.PatchDeploymentPatchConfigZypperArgs{
Categories: pulumi.StringArray{
pulumi.String("string"),
},
Excludes: pulumi.StringArray{
pulumi.String("string"),
},
ExclusivePatches: pulumi.StringArray{
pulumi.String("string"),
},
Severities: pulumi.StringArray{
pulumi.String("string"),
},
WithOptional: pulumi.Bool(false),
WithUpdate: pulumi.Bool(false),
},
},
Project: pulumi.String("string"),
RecurringSchedule: &osconfig.PatchDeploymentRecurringScheduleArgs{
TimeOfDay: &osconfig.PatchDeploymentRecurringScheduleTimeOfDayArgs{
Hours: pulumi.Int(0),
Minutes: pulumi.Int(0),
Nanos: pulumi.Int(0),
Seconds: pulumi.Int(0),
},
TimeZone: &osconfig.PatchDeploymentRecurringScheduleTimeZoneArgs{
Id: pulumi.String("string"),
Version: pulumi.String("string"),
},
EndTime: pulumi.String("string"),
LastExecuteTime: pulumi.String("string"),
Monthly: &osconfig.PatchDeploymentRecurringScheduleMonthlyArgs{
MonthDay: pulumi.Int(0),
WeekDayOfMonth: &osconfig.PatchDeploymentRecurringScheduleMonthlyWeekDayOfMonthArgs{
DayOfWeek: pulumi.String("string"),
WeekOrdinal: pulumi.Int(0),
DayOffset: pulumi.Int(0),
},
},
NextExecuteTime: pulumi.String("string"),
StartTime: pulumi.String("string"),
Weekly: &osconfig.PatchDeploymentRecurringScheduleWeeklyArgs{
DayOfWeek: pulumi.String("string"),
},
},
Rollout: &osconfig.PatchDeploymentRolloutArgs{
DisruptionBudget: &osconfig.PatchDeploymentRolloutDisruptionBudgetArgs{
Fixed: pulumi.Int(0),
Percentage: pulumi.Int(0),
},
Mode: pulumi.String("string"),
},
})
var patchDeploymentResource = new PatchDeployment("patchDeploymentResource", PatchDeploymentArgs.builder()
.instanceFilter(PatchDeploymentInstanceFilterArgs.builder()
.all(false)
.groupLabels(PatchDeploymentInstanceFilterGroupLabelArgs.builder()
.labels(Map.of("string", "string"))
.build())
.instanceNamePrefixes("string")
.instances("string")
.zones("string")
.build())
.patchDeploymentId("string")
.description("string")
.duration("string")
.oneTimeSchedule(PatchDeploymentOneTimeScheduleArgs.builder()
.executeTime("string")
.build())
.patchConfig(PatchDeploymentPatchConfigArgs.builder()
.apt(PatchDeploymentPatchConfigAptArgs.builder()
.excludes("string")
.exclusivePackages("string")
.type("string")
.build())
.goo(PatchDeploymentPatchConfigGooArgs.builder()
.enabled(false)
.build())
.migInstancesAllowed(false)
.postStep(PatchDeploymentPatchConfigPostStepArgs.builder()
.linuxExecStepConfig(PatchDeploymentPatchConfigPostStepLinuxExecStepConfigArgs.builder()
.allowedSuccessCodes(0)
.gcsObject(PatchDeploymentPatchConfigPostStepLinuxExecStepConfigGcsObjectArgs.builder()
.bucket("string")
.generationNumber("string")
.object("string")
.build())
.interpreter("string")
.localPath("string")
.build())
.windowsExecStepConfig(PatchDeploymentPatchConfigPostStepWindowsExecStepConfigArgs.builder()
.allowedSuccessCodes(0)
.gcsObject(PatchDeploymentPatchConfigPostStepWindowsExecStepConfigGcsObjectArgs.builder()
.bucket("string")
.generationNumber("string")
.object("string")
.build())
.interpreter("string")
.localPath("string")
.build())
.build())
.preStep(PatchDeploymentPatchConfigPreStepArgs.builder()
.linuxExecStepConfig(PatchDeploymentPatchConfigPreStepLinuxExecStepConfigArgs.builder()
.allowedSuccessCodes(0)
.gcsObject(PatchDeploymentPatchConfigPreStepLinuxExecStepConfigGcsObjectArgs.builder()
.bucket("string")
.generationNumber("string")
.object("string")
.build())
.interpreter("string")
.localPath("string")
.build())
.windowsExecStepConfig(PatchDeploymentPatchConfigPreStepWindowsExecStepConfigArgs.builder()
.allowedSuccessCodes(0)
.gcsObject(PatchDeploymentPatchConfigPreStepWindowsExecStepConfigGcsObjectArgs.builder()
.bucket("string")
.generationNumber("string")
.object("string")
.build())
.interpreter("string")
.localPath("string")
.build())
.build())
.rebootConfig("string")
.windowsUpdate(PatchDeploymentPatchConfigWindowsUpdateArgs.builder()
.classifications("string")
.excludes("string")
.exclusivePatches("string")
.build())
.yum(PatchDeploymentPatchConfigYumArgs.builder()
.excludes("string")
.exclusivePackages("string")
.minimal(false)
.security(false)
.build())
.zypper(PatchDeploymentPatchConfigZypperArgs.builder()
.categories("string")
.excludes("string")
.exclusivePatches("string")
.severities("string")
.withOptional(false)
.withUpdate(false)
.build())
.build())
.project("string")
.recurringSchedule(PatchDeploymentRecurringScheduleArgs.builder()
.timeOfDay(PatchDeploymentRecurringScheduleTimeOfDayArgs.builder()
.hours(0)
.minutes(0)
.nanos(0)
.seconds(0)
.build())
.timeZone(PatchDeploymentRecurringScheduleTimeZoneArgs.builder()
.id("string")
.version("string")
.build())
.endTime("string")
.lastExecuteTime("string")
.monthly(PatchDeploymentRecurringScheduleMonthlyArgs.builder()
.monthDay(0)
.weekDayOfMonth(PatchDeploymentRecurringScheduleMonthlyWeekDayOfMonthArgs.builder()
.dayOfWeek("string")
.weekOrdinal(0)
.dayOffset(0)
.build())
.build())
.nextExecuteTime("string")
.startTime("string")
.weekly(PatchDeploymentRecurringScheduleWeeklyArgs.builder()
.dayOfWeek("string")
.build())
.build())
.rollout(PatchDeploymentRolloutArgs.builder()
.disruptionBudget(PatchDeploymentRolloutDisruptionBudgetArgs.builder()
.fixed(0)
.percentage(0)
.build())
.mode("string")
.build())
.build());
patch_deployment_resource = gcp.osconfig.PatchDeployment("patchDeploymentResource",
instance_filter=gcp.osconfig.PatchDeploymentInstanceFilterArgs(
all=False,
group_labels=[gcp.osconfig.PatchDeploymentInstanceFilterGroupLabelArgs(
labels={
"string": "string",
},
)],
instance_name_prefixes=["string"],
instances=["string"],
zones=["string"],
),
patch_deployment_id="string",
description="string",
duration="string",
one_time_schedule=gcp.osconfig.PatchDeploymentOneTimeScheduleArgs(
execute_time="string",
),
patch_config=gcp.osconfig.PatchDeploymentPatchConfigArgs(
apt=gcp.osconfig.PatchDeploymentPatchConfigAptArgs(
excludes=["string"],
exclusive_packages=["string"],
type="string",
),
goo=gcp.osconfig.PatchDeploymentPatchConfigGooArgs(
enabled=False,
),
mig_instances_allowed=False,
post_step=gcp.osconfig.PatchDeploymentPatchConfigPostStepArgs(
linux_exec_step_config=gcp.osconfig.PatchDeploymentPatchConfigPostStepLinuxExecStepConfigArgs(
allowed_success_codes=[0],
gcs_object=gcp.osconfig.PatchDeploymentPatchConfigPostStepLinuxExecStepConfigGcsObjectArgs(
bucket="string",
generation_number="string",
object="string",
),
interpreter="string",
local_path="string",
),
windows_exec_step_config=gcp.osconfig.PatchDeploymentPatchConfigPostStepWindowsExecStepConfigArgs(
allowed_success_codes=[0],
gcs_object=gcp.osconfig.PatchDeploymentPatchConfigPostStepWindowsExecStepConfigGcsObjectArgs(
bucket="string",
generation_number="string",
object="string",
),
interpreter="string",
local_path="string",
),
),
pre_step=gcp.osconfig.PatchDeploymentPatchConfigPreStepArgs(
linux_exec_step_config=gcp.osconfig.PatchDeploymentPatchConfigPreStepLinuxExecStepConfigArgs(
allowed_success_codes=[0],
gcs_object=gcp.osconfig.PatchDeploymentPatchConfigPreStepLinuxExecStepConfigGcsObjectArgs(
bucket="string",
generation_number="string",
object="string",
),
interpreter="string",
local_path="string",
),
windows_exec_step_config=gcp.osconfig.PatchDeploymentPatchConfigPreStepWindowsExecStepConfigArgs(
allowed_success_codes=[0],
gcs_object=gcp.osconfig.PatchDeploymentPatchConfigPreStepWindowsExecStepConfigGcsObjectArgs(
bucket="string",
generation_number="string",
object="string",
),
interpreter="string",
local_path="string",
),
),
reboot_config="string",
windows_update=gcp.osconfig.PatchDeploymentPatchConfigWindowsUpdateArgs(
classifications=["string"],
excludes=["string"],
exclusive_patches=["string"],
),
yum=gcp.osconfig.PatchDeploymentPatchConfigYumArgs(
excludes=["string"],
exclusive_packages=["string"],
minimal=False,
security=False,
),
zypper=gcp.osconfig.PatchDeploymentPatchConfigZypperArgs(
categories=["string"],
excludes=["string"],
exclusive_patches=["string"],
severities=["string"],
with_optional=False,
with_update=False,
),
),
project="string",
recurring_schedule=gcp.osconfig.PatchDeploymentRecurringScheduleArgs(
time_of_day=gcp.osconfig.PatchDeploymentRecurringScheduleTimeOfDayArgs(
hours=0,
minutes=0,
nanos=0,
seconds=0,
),
time_zone=gcp.osconfig.PatchDeploymentRecurringScheduleTimeZoneArgs(
id="string",
version="string",
),
end_time="string",
last_execute_time="string",
monthly=gcp.osconfig.PatchDeploymentRecurringScheduleMonthlyArgs(
month_day=0,
week_day_of_month=gcp.osconfig.PatchDeploymentRecurringScheduleMonthlyWeekDayOfMonthArgs(
day_of_week="string",
week_ordinal=0,
day_offset=0,
),
),
next_execute_time="string",
start_time="string",
weekly=gcp.osconfig.PatchDeploymentRecurringScheduleWeeklyArgs(
day_of_week="string",
),
),
rollout=gcp.osconfig.PatchDeploymentRolloutArgs(
disruption_budget=gcp.osconfig.PatchDeploymentRolloutDisruptionBudgetArgs(
fixed=0,
percentage=0,
),
mode="string",
))
const patchDeploymentResource = new gcp.osconfig.PatchDeployment("patchDeploymentResource", {
instanceFilter: {
all: false,
groupLabels: [{
labels: {
string: "string",
},
}],
instanceNamePrefixes: ["string"],
instances: ["string"],
zones: ["string"],
},
patchDeploymentId: "string",
description: "string",
duration: "string",
oneTimeSchedule: {
executeTime: "string",
},
patchConfig: {
apt: {
excludes: ["string"],
exclusivePackages: ["string"],
type: "string",
},
goo: {
enabled: false,
},
migInstancesAllowed: false,
postStep: {
linuxExecStepConfig: {
allowedSuccessCodes: [0],
gcsObject: {
bucket: "string",
generationNumber: "string",
object: "string",
},
interpreter: "string",
localPath: "string",
},
windowsExecStepConfig: {
allowedSuccessCodes: [0],
gcsObject: {
bucket: "string",
generationNumber: "string",
object: "string",
},
interpreter: "string",
localPath: "string",
},
},
preStep: {
linuxExecStepConfig: {
allowedSuccessCodes: [0],
gcsObject: {
bucket: "string",
generationNumber: "string",
object: "string",
},
interpreter: "string",
localPath: "string",
},
windowsExecStepConfig: {
allowedSuccessCodes: [0],
gcsObject: {
bucket: "string",
generationNumber: "string",
object: "string",
},
interpreter: "string",
localPath: "string",
},
},
rebootConfig: "string",
windowsUpdate: {
classifications: ["string"],
excludes: ["string"],
exclusivePatches: ["string"],
},
yum: {
excludes: ["string"],
exclusivePackages: ["string"],
minimal: false,
security: false,
},
zypper: {
categories: ["string"],
excludes: ["string"],
exclusivePatches: ["string"],
severities: ["string"],
withOptional: false,
withUpdate: false,
},
},
project: "string",
recurringSchedule: {
timeOfDay: {
hours: 0,
minutes: 0,
nanos: 0,
seconds: 0,
},
timeZone: {
id: "string",
version: "string",
},
endTime: "string",
lastExecuteTime: "string",
monthly: {
monthDay: 0,
weekDayOfMonth: {
dayOfWeek: "string",
weekOrdinal: 0,
dayOffset: 0,
},
},
nextExecuteTime: "string",
startTime: "string",
weekly: {
dayOfWeek: "string",
},
},
rollout: {
disruptionBudget: {
fixed: 0,
percentage: 0,
},
mode: "string",
},
});
type: gcp:osconfig:PatchDeployment
properties:
description: string
duration: string
instanceFilter:
all: false
groupLabels:
- labels:
string: string
instanceNamePrefixes:
- string
instances:
- string
zones:
- string
oneTimeSchedule:
executeTime: string
patchConfig:
apt:
excludes:
- string
exclusivePackages:
- string
type: string
goo:
enabled: false
migInstancesAllowed: false
postStep:
linuxExecStepConfig:
allowedSuccessCodes:
- 0
gcsObject:
bucket: string
generationNumber: string
object: string
interpreter: string
localPath: string
windowsExecStepConfig:
allowedSuccessCodes:
- 0
gcsObject:
bucket: string
generationNumber: string
object: string
interpreter: string
localPath: string
preStep:
linuxExecStepConfig:
allowedSuccessCodes:
- 0
gcsObject:
bucket: string
generationNumber: string
object: string
interpreter: string
localPath: string
windowsExecStepConfig:
allowedSuccessCodes:
- 0
gcsObject:
bucket: string
generationNumber: string
object: string
interpreter: string
localPath: string
rebootConfig: string
windowsUpdate:
classifications:
- string
excludes:
- string
exclusivePatches:
- string
yum:
excludes:
- string
exclusivePackages:
- string
minimal: false
security: false
zypper:
categories:
- string
excludes:
- string
exclusivePatches:
- string
severities:
- string
withOptional: false
withUpdate: false
patchDeploymentId: string
project: string
recurringSchedule:
endTime: string
lastExecuteTime: string
monthly:
monthDay: 0
weekDayOfMonth:
dayOfWeek: string
dayOffset: 0
weekOrdinal: 0
nextExecuteTime: string
startTime: string
timeOfDay:
hours: 0
minutes: 0
nanos: 0
seconds: 0
timeZone:
id: string
version: string
weekly:
dayOfWeek: string
rollout:
disruptionBudget:
fixed: 0
percentage: 0
mode: string
PatchDeployment Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
The PatchDeployment resource accepts the following input properties:
- Instance
Filter PatchDeployment Instance Filter - VM instances to patch. Structure is documented below.
- Patch
Deployment stringId - A name for the patch deployment in the project. When creating a name the following rules apply:
- Must contain only lowercase letters, numbers, and hyphens.
- Must start with a letter.
- Must be between 1-63 characters.
- Must end with a number or a letter.
- Must be unique within the project.
- Description string
- Description of the patch deployment. Length of the description is limited to 1024 characters.
- Duration string
- Duration of the patch. After the duration ends, the patch times out. A duration in seconds with up to nine fractional digits, terminated by 's'. Example: "3.5s"
- One
Time PatchSchedule Deployment One Time Schedule - Schedule a one-time execution.
- Patch
Config PatchDeployment Patch Config - Patch configuration that is applied.
- Project string
- Recurring
Schedule PatchDeployment Recurring Schedule - Schedule recurring executions.
- Rollout
Patch
Deployment Rollout - Rollout strategy of the patch job.
- Instance
Filter PatchDeployment Instance Filter Args - VM instances to patch. Structure is documented below.
- Patch
Deployment stringId - A name for the patch deployment in the project. When creating a name the following rules apply:
- Must contain only lowercase letters, numbers, and hyphens.
- Must start with a letter.
- Must be between 1-63 characters.
- Must end with a number or a letter.
- Must be unique within the project.
- Description string
- Description of the patch deployment. Length of the description is limited to 1024 characters.
- Duration string
- Duration of the patch. After the duration ends, the patch times out. A duration in seconds with up to nine fractional digits, terminated by 's'. Example: "3.5s"
- One
Time PatchSchedule Deployment One Time Schedule Args - Schedule a one-time execution.
- Patch
Config PatchDeployment Patch Config Args - Patch configuration that is applied.
- Project string
- Recurring
Schedule PatchDeployment Recurring Schedule Args - Schedule recurring executions.
- Rollout
Patch
Deployment Rollout Args - Rollout strategy of the patch job.
- instance
Filter PatchDeployment Instance Filter - VM instances to patch. Structure is documented below.
- patch
Deployment StringId - A name for the patch deployment in the project. When creating a name the following rules apply:
- Must contain only lowercase letters, numbers, and hyphens.
- Must start with a letter.
- Must be between 1-63 characters.
- Must end with a number or a letter.
- Must be unique within the project.
- description String
- Description of the patch deployment. Length of the description is limited to 1024 characters.
- duration String
- Duration of the patch. After the duration ends, the patch times out. A duration in seconds with up to nine fractional digits, terminated by 's'. Example: "3.5s"
- one
Time PatchSchedule Deployment One Time Schedule - Schedule a one-time execution.
- patch
Config PatchDeployment Patch Config - Patch configuration that is applied.
- project String
- recurring
Schedule PatchDeployment Recurring Schedule - Schedule recurring executions.
- rollout
Patch
Deployment Rollout - Rollout strategy of the patch job.
- instance
Filter PatchDeployment Instance Filter - VM instances to patch. Structure is documented below.
- patch
Deployment stringId - A name for the patch deployment in the project. When creating a name the following rules apply:
- Must contain only lowercase letters, numbers, and hyphens.
- Must start with a letter.
- Must be between 1-63 characters.
- Must end with a number or a letter.
- Must be unique within the project.
- description string
- Description of the patch deployment. Length of the description is limited to 1024 characters.
- duration string
- Duration of the patch. After the duration ends, the patch times out. A duration in seconds with up to nine fractional digits, terminated by 's'. Example: "3.5s"
- one
Time PatchSchedule Deployment One Time Schedule - Schedule a one-time execution.
- patch
Config PatchDeployment Patch Config - Patch configuration that is applied.
- project string
- recurring
Schedule PatchDeployment Recurring Schedule - Schedule recurring executions.
- rollout
Patch
Deployment Rollout - Rollout strategy of the patch job.
- instance_
filter PatchDeployment Instance Filter Args - VM instances to patch. Structure is documented below.
- patch_
deployment_ strid - A name for the patch deployment in the project. When creating a name the following rules apply:
- Must contain only lowercase letters, numbers, and hyphens.
- Must start with a letter.
- Must be between 1-63 characters.
- Must end with a number or a letter.
- Must be unique within the project.
- description str
- Description of the patch deployment. Length of the description is limited to 1024 characters.
- duration str
- Duration of the patch. After the duration ends, the patch times out. A duration in seconds with up to nine fractional digits, terminated by 's'. Example: "3.5s"
- one_
time_ Patchschedule Deployment One Time Schedule Args - Schedule a one-time execution.
- patch_
config PatchDeployment Patch Config Args - Patch configuration that is applied.
- project str
- recurring_
schedule PatchDeployment Recurring Schedule Args - Schedule recurring executions.
- rollout
Patch
Deployment Rollout Args - Rollout strategy of the patch job.
- instance
Filter Property Map - VM instances to patch. Structure is documented below.
- patch
Deployment StringId - A name for the patch deployment in the project. When creating a name the following rules apply:
- Must contain only lowercase letters, numbers, and hyphens.
- Must start with a letter.
- Must be between 1-63 characters.
- Must end with a number or a letter.
- Must be unique within the project.
- description String
- Description of the patch deployment. Length of the description is limited to 1024 characters.
- duration String
- Duration of the patch. After the duration ends, the patch times out. A duration in seconds with up to nine fractional digits, terminated by 's'. Example: "3.5s"
- one
Time Property MapSchedule - Schedule a one-time execution.
- patch
Config Property Map - Patch configuration that is applied.
- project String
- recurring
Schedule Property Map - Schedule recurring executions.
- rollout Property Map
- Rollout strategy of the patch job.
Outputs
All input properties are implicitly available as output properties. Additionally, the PatchDeployment resource produces the following output properties:
- Create
Time string - Time the patch deployment was created. Timestamp is in RFC3339 text format. A timestamp in RFC3339 UTC "Zulu" format, accurate to nanoseconds. Example: "2014-10-02T15:01:23.045123456Z".
- Id string
- The provider-assigned unique ID for this managed resource.
- Last
Execute stringTime - The last time a patch job was started by this deployment. Timestamp is in RFC3339 text format. A timestamp in RFC3339 UTC "Zulu" format, accurate to nanoseconds. Example: "2014-10-02T15:01:23.045123456Z".
- Name string
- Unique name for the patch deployment resource in a project. The patch deployment name is in the form: projects/{project_id}/patchDeployments/{patchDeploymentId}.
- Update
Time string - Time the patch deployment was last updated. Timestamp is in RFC3339 text format. A timestamp in RFC3339 UTC "Zulu" format, accurate to nanoseconds. Example: "2014-10-02T15:01:23.045123456Z".
- Create
Time string - Time the patch deployment was created. Timestamp is in RFC3339 text format. A timestamp in RFC3339 UTC "Zulu" format, accurate to nanoseconds. Example: "2014-10-02T15:01:23.045123456Z".
- Id string
- The provider-assigned unique ID for this managed resource.
- Last
Execute stringTime - The last time a patch job was started by this deployment. Timestamp is in RFC3339 text format. A timestamp in RFC3339 UTC "Zulu" format, accurate to nanoseconds. Example: "2014-10-02T15:01:23.045123456Z".
- Name string
- Unique name for the patch deployment resource in a project. The patch deployment name is in the form: projects/{project_id}/patchDeployments/{patchDeploymentId}.
- Update
Time string - Time the patch deployment was last updated. Timestamp is in RFC3339 text format. A timestamp in RFC3339 UTC "Zulu" format, accurate to nanoseconds. Example: "2014-10-02T15:01:23.045123456Z".
- create
Time String - Time the patch deployment was created. Timestamp is in RFC3339 text format. A timestamp in RFC3339 UTC "Zulu" format, accurate to nanoseconds. Example: "2014-10-02T15:01:23.045123456Z".
- id String
- The provider-assigned unique ID for this managed resource.
- last
Execute StringTime - The last time a patch job was started by this deployment. Timestamp is in RFC3339 text format. A timestamp in RFC3339 UTC "Zulu" format, accurate to nanoseconds. Example: "2014-10-02T15:01:23.045123456Z".
- name String
- Unique name for the patch deployment resource in a project. The patch deployment name is in the form: projects/{project_id}/patchDeployments/{patchDeploymentId}.
- update
Time String - Time the patch deployment was last updated. Timestamp is in RFC3339 text format. A timestamp in RFC3339 UTC "Zulu" format, accurate to nanoseconds. Example: "2014-10-02T15:01:23.045123456Z".
- create
Time string - Time the patch deployment was created. Timestamp is in RFC3339 text format. A timestamp in RFC3339 UTC "Zulu" format, accurate to nanoseconds. Example: "2014-10-02T15:01:23.045123456Z".
- id string
- The provider-assigned unique ID for this managed resource.
- last
Execute stringTime - The last time a patch job was started by this deployment. Timestamp is in RFC3339 text format. A timestamp in RFC3339 UTC "Zulu" format, accurate to nanoseconds. Example: "2014-10-02T15:01:23.045123456Z".
- name string
- Unique name for the patch deployment resource in a project. The patch deployment name is in the form: projects/{project_id}/patchDeployments/{patchDeploymentId}.
- update
Time string - Time the patch deployment was last updated. Timestamp is in RFC3339 text format. A timestamp in RFC3339 UTC "Zulu" format, accurate to nanoseconds. Example: "2014-10-02T15:01:23.045123456Z".
- create_
time str - Time the patch deployment was created. Timestamp is in RFC3339 text format. A timestamp in RFC3339 UTC "Zulu" format, accurate to nanoseconds. Example: "2014-10-02T15:01:23.045123456Z".
- id str
- The provider-assigned unique ID for this managed resource.
- last_
execute_ strtime - The last time a patch job was started by this deployment. Timestamp is in RFC3339 text format. A timestamp in RFC3339 UTC "Zulu" format, accurate to nanoseconds. Example: "2014-10-02T15:01:23.045123456Z".
- name str
- Unique name for the patch deployment resource in a project. The patch deployment name is in the form: projects/{project_id}/patchDeployments/{patchDeploymentId}.
- update_
time str - Time the patch deployment was last updated. Timestamp is in RFC3339 text format. A timestamp in RFC3339 UTC "Zulu" format, accurate to nanoseconds. Example: "2014-10-02T15:01:23.045123456Z".
- create
Time String - Time the patch deployment was created. Timestamp is in RFC3339 text format. A timestamp in RFC3339 UTC "Zulu" format, accurate to nanoseconds. Example: "2014-10-02T15:01:23.045123456Z".
- id String
- The provider-assigned unique ID for this managed resource.
- last
Execute StringTime - The last time a patch job was started by this deployment. Timestamp is in RFC3339 text format. A timestamp in RFC3339 UTC "Zulu" format, accurate to nanoseconds. Example: "2014-10-02T15:01:23.045123456Z".
- name String
- Unique name for the patch deployment resource in a project. The patch deployment name is in the form: projects/{project_id}/patchDeployments/{patchDeploymentId}.
- update
Time String - Time the patch deployment was last updated. Timestamp is in RFC3339 text format. A timestamp in RFC3339 UTC "Zulu" format, accurate to nanoseconds. Example: "2014-10-02T15:01:23.045123456Z".
Look up Existing PatchDeployment Resource
Get an existing PatchDeployment 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?: PatchDeploymentState, opts?: CustomResourceOptions): PatchDeployment
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
create_time: Optional[str] = None,
description: Optional[str] = None,
duration: Optional[str] = None,
instance_filter: Optional[PatchDeploymentInstanceFilterArgs] = None,
last_execute_time: Optional[str] = None,
name: Optional[str] = None,
one_time_schedule: Optional[PatchDeploymentOneTimeScheduleArgs] = None,
patch_config: Optional[PatchDeploymentPatchConfigArgs] = None,
patch_deployment_id: Optional[str] = None,
project: Optional[str] = None,
recurring_schedule: Optional[PatchDeploymentRecurringScheduleArgs] = None,
rollout: Optional[PatchDeploymentRolloutArgs] = None,
update_time: Optional[str] = None) -> PatchDeployment
func GetPatchDeployment(ctx *Context, name string, id IDInput, state *PatchDeploymentState, opts ...ResourceOption) (*PatchDeployment, error)
public static PatchDeployment Get(string name, Input<string> id, PatchDeploymentState? state, CustomResourceOptions? opts = null)
public static PatchDeployment get(String name, Output<String> id, PatchDeploymentState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Create
Time string - Time the patch deployment was created. Timestamp is in RFC3339 text format. A timestamp in RFC3339 UTC "Zulu" format, accurate to nanoseconds. Example: "2014-10-02T15:01:23.045123456Z".
- Description string
- Description of the patch deployment. Length of the description is limited to 1024 characters.
- Duration string
- Duration of the patch. After the duration ends, the patch times out. A duration in seconds with up to nine fractional digits, terminated by 's'. Example: "3.5s"
- Instance
Filter PatchDeployment Instance Filter - VM instances to patch. Structure is documented below.
- Last
Execute stringTime - The last time a patch job was started by this deployment. Timestamp is in RFC3339 text format. A timestamp in RFC3339 UTC "Zulu" format, accurate to nanoseconds. Example: "2014-10-02T15:01:23.045123456Z".
- Name string
- Unique name for the patch deployment resource in a project. The patch deployment name is in the form: projects/{project_id}/patchDeployments/{patchDeploymentId}.
- One
Time PatchSchedule Deployment One Time Schedule - Schedule a one-time execution.
- Patch
Config PatchDeployment Patch Config - Patch configuration that is applied.
- Patch
Deployment stringId - A name for the patch deployment in the project. When creating a name the following rules apply:
- Must contain only lowercase letters, numbers, and hyphens.
- Must start with a letter.
- Must be between 1-63 characters.
- Must end with a number or a letter.
- Must be unique within the project.
- Project string
- Recurring
Schedule PatchDeployment Recurring Schedule - Schedule recurring executions.
- Rollout
Patch
Deployment Rollout - Rollout strategy of the patch job.
- Update
Time string - Time the patch deployment was last updated. Timestamp is in RFC3339 text format. A timestamp in RFC3339 UTC "Zulu" format, accurate to nanoseconds. Example: "2014-10-02T15:01:23.045123456Z".
- Create
Time string - Time the patch deployment was created. Timestamp is in RFC3339 text format. A timestamp in RFC3339 UTC "Zulu" format, accurate to nanoseconds. Example: "2014-10-02T15:01:23.045123456Z".
- Description string
- Description of the patch deployment. Length of the description is limited to 1024 characters.
- Duration string
- Duration of the patch. After the duration ends, the patch times out. A duration in seconds with up to nine fractional digits, terminated by 's'. Example: "3.5s"
- Instance
Filter PatchDeployment Instance Filter Args - VM instances to patch. Structure is documented below.
- Last
Execute stringTime - The last time a patch job was started by this deployment. Timestamp is in RFC3339 text format. A timestamp in RFC3339 UTC "Zulu" format, accurate to nanoseconds. Example: "2014-10-02T15:01:23.045123456Z".
- Name string
- Unique name for the patch deployment resource in a project. The patch deployment name is in the form: projects/{project_id}/patchDeployments/{patchDeploymentId}.
- One
Time PatchSchedule Deployment One Time Schedule Args - Schedule a one-time execution.
- Patch
Config PatchDeployment Patch Config Args - Patch configuration that is applied.
- Patch
Deployment stringId - A name for the patch deployment in the project. When creating a name the following rules apply:
- Must contain only lowercase letters, numbers, and hyphens.
- Must start with a letter.
- Must be between 1-63 characters.
- Must end with a number or a letter.
- Must be unique within the project.
- Project string
- Recurring
Schedule PatchDeployment Recurring Schedule Args - Schedule recurring executions.
- Rollout
Patch
Deployment Rollout Args - Rollout strategy of the patch job.
- Update
Time string - Time the patch deployment was last updated. Timestamp is in RFC3339 text format. A timestamp in RFC3339 UTC "Zulu" format, accurate to nanoseconds. Example: "2014-10-02T15:01:23.045123456Z".
- create
Time String - Time the patch deployment was created. Timestamp is in RFC3339 text format. A timestamp in RFC3339 UTC "Zulu" format, accurate to nanoseconds. Example: "2014-10-02T15:01:23.045123456Z".
- description String
- Description of the patch deployment. Length of the description is limited to 1024 characters.
- duration String
- Duration of the patch. After the duration ends, the patch times out. A duration in seconds with up to nine fractional digits, terminated by 's'. Example: "3.5s"
- instance
Filter PatchDeployment Instance Filter - VM instances to patch. Structure is documented below.
- last
Execute StringTime - The last time a patch job was started by this deployment. Timestamp is in RFC3339 text format. A timestamp in RFC3339 UTC "Zulu" format, accurate to nanoseconds. Example: "2014-10-02T15:01:23.045123456Z".
- name String
- Unique name for the patch deployment resource in a project. The patch deployment name is in the form: projects/{project_id}/patchDeployments/{patchDeploymentId}.
- one
Time PatchSchedule Deployment One Time Schedule - Schedule a one-time execution.
- patch
Config PatchDeployment Patch Config - Patch configuration that is applied.
- patch
Deployment StringId - A name for the patch deployment in the project. When creating a name the following rules apply:
- Must contain only lowercase letters, numbers, and hyphens.
- Must start with a letter.
- Must be between 1-63 characters.
- Must end with a number or a letter.
- Must be unique within the project.
- project String
- recurring
Schedule PatchDeployment Recurring Schedule - Schedule recurring executions.
- rollout
Patch
Deployment Rollout - Rollout strategy of the patch job.
- update
Time String - Time the patch deployment was last updated. Timestamp is in RFC3339 text format. A timestamp in RFC3339 UTC "Zulu" format, accurate to nanoseconds. Example: "2014-10-02T15:01:23.045123456Z".
- create
Time string - Time the patch deployment was created. Timestamp is in RFC3339 text format. A timestamp in RFC3339 UTC "Zulu" format, accurate to nanoseconds. Example: "2014-10-02T15:01:23.045123456Z".
- description string
- Description of the patch deployment. Length of the description is limited to 1024 characters.
- duration string
- Duration of the patch. After the duration ends, the patch times out. A duration in seconds with up to nine fractional digits, terminated by 's'. Example: "3.5s"
- instance
Filter PatchDeployment Instance Filter - VM instances to patch. Structure is documented below.
- last
Execute stringTime - The last time a patch job was started by this deployment. Timestamp is in RFC3339 text format. A timestamp in RFC3339 UTC "Zulu" format, accurate to nanoseconds. Example: "2014-10-02T15:01:23.045123456Z".
- name string
- Unique name for the patch deployment resource in a project. The patch deployment name is in the form: projects/{project_id}/patchDeployments/{patchDeploymentId}.
- one
Time PatchSchedule Deployment One Time Schedule - Schedule a one-time execution.
- patch
Config PatchDeployment Patch Config - Patch configuration that is applied.
- patch
Deployment stringId - A name for the patch deployment in the project. When creating a name the following rules apply:
- Must contain only lowercase letters, numbers, and hyphens.
- Must start with a letter.
- Must be between 1-63 characters.
- Must end with a number or a letter.
- Must be unique within the project.
- project string
- recurring
Schedule PatchDeployment Recurring Schedule - Schedule recurring executions.
- rollout
Patch
Deployment Rollout - Rollout strategy of the patch job.
- update
Time string - Time the patch deployment was last updated. Timestamp is in RFC3339 text format. A timestamp in RFC3339 UTC "Zulu" format, accurate to nanoseconds. Example: "2014-10-02T15:01:23.045123456Z".
- create_
time str - Time the patch deployment was created. Timestamp is in RFC3339 text format. A timestamp in RFC3339 UTC "Zulu" format, accurate to nanoseconds. Example: "2014-10-02T15:01:23.045123456Z".
- description str
- Description of the patch deployment. Length of the description is limited to 1024 characters.
- duration str
- Duration of the patch. After the duration ends, the patch times out. A duration in seconds with up to nine fractional digits, terminated by 's'. Example: "3.5s"
- instance_
filter PatchDeployment Instance Filter Args - VM instances to patch. Structure is documented below.
- last_
execute_ strtime - The last time a patch job was started by this deployment. Timestamp is in RFC3339 text format. A timestamp in RFC3339 UTC "Zulu" format, accurate to nanoseconds. Example: "2014-10-02T15:01:23.045123456Z".
- name str
- Unique name for the patch deployment resource in a project. The patch deployment name is in the form: projects/{project_id}/patchDeployments/{patchDeploymentId}.
- one_
time_ Patchschedule Deployment One Time Schedule Args - Schedule a one-time execution.
- patch_
config PatchDeployment Patch Config Args - Patch configuration that is applied.
- patch_
deployment_ strid - A name for the patch deployment in the project. When creating a name the following rules apply:
- Must contain only lowercase letters, numbers, and hyphens.
- Must start with a letter.
- Must be between 1-63 characters.
- Must end with a number or a letter.
- Must be unique within the project.
- project str
- recurring_
schedule PatchDeployment Recurring Schedule Args - Schedule recurring executions.
- rollout
Patch
Deployment Rollout Args - Rollout strategy of the patch job.
- update_
time str - Time the patch deployment was last updated. Timestamp is in RFC3339 text format. A timestamp in RFC3339 UTC "Zulu" format, accurate to nanoseconds. Example: "2014-10-02T15:01:23.045123456Z".
- create
Time String - Time the patch deployment was created. Timestamp is in RFC3339 text format. A timestamp in RFC3339 UTC "Zulu" format, accurate to nanoseconds. Example: "2014-10-02T15:01:23.045123456Z".
- description String
- Description of the patch deployment. Length of the description is limited to 1024 characters.
- duration String
- Duration of the patch. After the duration ends, the patch times out. A duration in seconds with up to nine fractional digits, terminated by 's'. Example: "3.5s"
- instance
Filter Property Map - VM instances to patch. Structure is documented below.
- last
Execute StringTime - The last time a patch job was started by this deployment. Timestamp is in RFC3339 text format. A timestamp in RFC3339 UTC "Zulu" format, accurate to nanoseconds. Example: "2014-10-02T15:01:23.045123456Z".
- name String
- Unique name for the patch deployment resource in a project. The patch deployment name is in the form: projects/{project_id}/patchDeployments/{patchDeploymentId}.
- one
Time Property MapSchedule - Schedule a one-time execution.
- patch
Config Property Map - Patch configuration that is applied.
- patch
Deployment StringId - A name for the patch deployment in the project. When creating a name the following rules apply:
- Must contain only lowercase letters, numbers, and hyphens.
- Must start with a letter.
- Must be between 1-63 characters.
- Must end with a number or a letter.
- Must be unique within the project.
- project String
- recurring
Schedule Property Map - Schedule recurring executions.
- rollout Property Map
- Rollout strategy of the patch job.
- update
Time String - Time the patch deployment was last updated. Timestamp is in RFC3339 text format. A timestamp in RFC3339 UTC "Zulu" format, accurate to nanoseconds. Example: "2014-10-02T15:01:23.045123456Z".
Supporting Types
PatchDeploymentInstanceFilter, PatchDeploymentInstanceFilterArgs
- All bool
- Target all VM instances in the project. If true, no other criteria is permitted.
- Group
Labels List<PatchDeployment Instance Filter Group Label> - Targets VM instances matching ANY of these GroupLabels. This allows targeting of disparate groups of VM instances. Structure is documented below.
- Instance
Name List<string>Prefixes - Targets VMs whose name starts with one of these prefixes. Similar to labels, this is another way to group VMs when targeting configs, for example prefix="prod-".
- Instances List<string>
- Targets any of the VM instances specified. Instances are specified by their URI in the
form zones/{{zone}}/instances/{{instance_name}}
,projects/{{project_id}}/zones/{{zone}}/instances/{{instance_name}}
, orhttps://www.googleapis.com/compute/v1/projects/{{project_id}}/zones/{{zone}}/instances/{{instance_name}}
- Zones List<string>
- Targets VM instances in ANY of these zones. Leave empty to target VM instances in any zone.
- All bool
- Target all VM instances in the project. If true, no other criteria is permitted.
- Group
Labels []PatchDeployment Instance Filter Group Label - Targets VM instances matching ANY of these GroupLabels. This allows targeting of disparate groups of VM instances. Structure is documented below.
- Instance
Name []stringPrefixes - Targets VMs whose name starts with one of these prefixes. Similar to labels, this is another way to group VMs when targeting configs, for example prefix="prod-".
- Instances []string
- Targets any of the VM instances specified. Instances are specified by their URI in the
form zones/{{zone}}/instances/{{instance_name}}
,projects/{{project_id}}/zones/{{zone}}/instances/{{instance_name}}
, orhttps://www.googleapis.com/compute/v1/projects/{{project_id}}/zones/{{zone}}/instances/{{instance_name}}
- Zones []string
- Targets VM instances in ANY of these zones. Leave empty to target VM instances in any zone.
- all Boolean
- Target all VM instances in the project. If true, no other criteria is permitted.
- group
Labels List<PatchDeployment Instance Filter Group Label> - Targets VM instances matching ANY of these GroupLabels. This allows targeting of disparate groups of VM instances. Structure is documented below.
- instance
Name List<String>Prefixes - Targets VMs whose name starts with one of these prefixes. Similar to labels, this is another way to group VMs when targeting configs, for example prefix="prod-".
- instances List<String>
- Targets any of the VM instances specified. Instances are specified by their URI in the
form zones/{{zone}}/instances/{{instance_name}}
,projects/{{project_id}}/zones/{{zone}}/instances/{{instance_name}}
, orhttps://www.googleapis.com/compute/v1/projects/{{project_id}}/zones/{{zone}}/instances/{{instance_name}}
- zones List<String>
- Targets VM instances in ANY of these zones. Leave empty to target VM instances in any zone.
- all boolean
- Target all VM instances in the project. If true, no other criteria is permitted.
- group
Labels PatchDeployment Instance Filter Group Label[] - Targets VM instances matching ANY of these GroupLabels. This allows targeting of disparate groups of VM instances. Structure is documented below.
- instance
Name string[]Prefixes - Targets VMs whose name starts with one of these prefixes. Similar to labels, this is another way to group VMs when targeting configs, for example prefix="prod-".
- instances string[]
- Targets any of the VM instances specified. Instances are specified by their URI in the
form zones/{{zone}}/instances/{{instance_name}}
,projects/{{project_id}}/zones/{{zone}}/instances/{{instance_name}}
, orhttps://www.googleapis.com/compute/v1/projects/{{project_id}}/zones/{{zone}}/instances/{{instance_name}}
- zones string[]
- Targets VM instances in ANY of these zones. Leave empty to target VM instances in any zone.
- all bool
- Target all VM instances in the project. If true, no other criteria is permitted.
- group_
labels Sequence[PatchDeployment Instance Filter Group Label] - Targets VM instances matching ANY of these GroupLabels. This allows targeting of disparate groups of VM instances. Structure is documented below.
- instance_
name_ Sequence[str]prefixes - Targets VMs whose name starts with one of these prefixes. Similar to labels, this is another way to group VMs when targeting configs, for example prefix="prod-".
- instances Sequence[str]
- Targets any of the VM instances specified. Instances are specified by their URI in the
form zones/{{zone}}/instances/{{instance_name}}
,projects/{{project_id}}/zones/{{zone}}/instances/{{instance_name}}
, orhttps://www.googleapis.com/compute/v1/projects/{{project_id}}/zones/{{zone}}/instances/{{instance_name}}
- zones Sequence[str]
- Targets VM instances in ANY of these zones. Leave empty to target VM instances in any zone.
- all Boolean
- Target all VM instances in the project. If true, no other criteria is permitted.
- group
Labels List<Property Map> - Targets VM instances matching ANY of these GroupLabels. This allows targeting of disparate groups of VM instances. Structure is documented below.
- instance
Name List<String>Prefixes - Targets VMs whose name starts with one of these prefixes. Similar to labels, this is another way to group VMs when targeting configs, for example prefix="prod-".
- instances List<String>
- Targets any of the VM instances specified. Instances are specified by their URI in the
form zones/{{zone}}/instances/{{instance_name}}
,projects/{{project_id}}/zones/{{zone}}/instances/{{instance_name}}
, orhttps://www.googleapis.com/compute/v1/projects/{{project_id}}/zones/{{zone}}/instances/{{instance_name}}
- zones List<String>
- Targets VM instances in ANY of these zones. Leave empty to target VM instances in any zone.
PatchDeploymentInstanceFilterGroupLabel, PatchDeploymentInstanceFilterGroupLabelArgs
- Labels Dictionary<string, string>
- Compute Engine instance labels that must be present for a VM instance to be targeted by this filter
- Labels map[string]string
- Compute Engine instance labels that must be present for a VM instance to be targeted by this filter
- labels Map<String,String>
- Compute Engine instance labels that must be present for a VM instance to be targeted by this filter
- labels {[key: string]: string}
- Compute Engine instance labels that must be present for a VM instance to be targeted by this filter
- labels Mapping[str, str]
- Compute Engine instance labels that must be present for a VM instance to be targeted by this filter
- labels Map<String>
- Compute Engine instance labels that must be present for a VM instance to be targeted by this filter
PatchDeploymentOneTimeSchedule, PatchDeploymentOneTimeScheduleArgs
- Execute
Time string - The desired patch job execution time. A timestamp in RFC3339 UTC "Zulu" format, accurate to nanoseconds. Example: "2014-10-02T15:01:23.045123456Z".
- Execute
Time string - The desired patch job execution time. A timestamp in RFC3339 UTC "Zulu" format, accurate to nanoseconds. Example: "2014-10-02T15:01:23.045123456Z".
- execute
Time String - The desired patch job execution time. A timestamp in RFC3339 UTC "Zulu" format, accurate to nanoseconds. Example: "2014-10-02T15:01:23.045123456Z".
- execute
Time string - The desired patch job execution time. A timestamp in RFC3339 UTC "Zulu" format, accurate to nanoseconds. Example: "2014-10-02T15:01:23.045123456Z".
- execute_
time str - The desired patch job execution time. A timestamp in RFC3339 UTC "Zulu" format, accurate to nanoseconds. Example: "2014-10-02T15:01:23.045123456Z".
- execute
Time String - The desired patch job execution time. A timestamp in RFC3339 UTC "Zulu" format, accurate to nanoseconds. Example: "2014-10-02T15:01:23.045123456Z".
PatchDeploymentPatchConfig, PatchDeploymentPatchConfigArgs
- Apt
Patch
Deployment Patch Config Apt - Apt update settings. Use this setting to override the default apt patch rules. Structure is documented below.
- Goo
Patch
Deployment Patch Config Goo - goo update settings. Use this setting to override the default goo patch rules. Structure is documented below.
- Mig
Instances boolAllowed - Allows the patch job to run on Managed instance groups (MIGs).
- Post
Step PatchDeployment Patch Config Post Step - The ExecStep to run after the patch update. Structure is documented below.
- Pre
Step PatchDeployment Patch Config Pre Step - The ExecStep to run before the patch update. Structure is documented below.
- Reboot
Config string - Post-patch reboot settings.
Possible values are:
DEFAULT
,ALWAYS
,NEVER
. - Windows
Update PatchDeployment Patch Config Windows Update - Windows update settings. Use this setting to override the default Windows patch rules. Structure is documented below.
- Yum
Patch
Deployment Patch Config Yum - Yum update settings. Use this setting to override the default yum patch rules. Structure is documented below.
- Zypper
Patch
Deployment Patch Config Zypper - zypper update settings. Use this setting to override the default zypper patch rules. Structure is documented below.
- Apt
Patch
Deployment Patch Config Apt - Apt update settings. Use this setting to override the default apt patch rules. Structure is documented below.
- Goo
Patch
Deployment Patch Config Goo - goo update settings. Use this setting to override the default goo patch rules. Structure is documented below.
- Mig
Instances boolAllowed - Allows the patch job to run on Managed instance groups (MIGs).
- Post
Step PatchDeployment Patch Config Post Step - The ExecStep to run after the patch update. Structure is documented below.
- Pre
Step PatchDeployment Patch Config Pre Step - The ExecStep to run before the patch update. Structure is documented below.
- Reboot
Config string - Post-patch reboot settings.
Possible values are:
DEFAULT
,ALWAYS
,NEVER
. - Windows
Update PatchDeployment Patch Config Windows Update - Windows update settings. Use this setting to override the default Windows patch rules. Structure is documented below.
- Yum
Patch
Deployment Patch Config Yum - Yum update settings. Use this setting to override the default yum patch rules. Structure is documented below.
- Zypper
Patch
Deployment Patch Config Zypper - zypper update settings. Use this setting to override the default zypper patch rules. Structure is documented below.
- apt
Patch
Deployment Patch Config Apt - Apt update settings. Use this setting to override the default apt patch rules. Structure is documented below.
- goo
Patch
Deployment Patch Config Goo - goo update settings. Use this setting to override the default goo patch rules. Structure is documented below.
- mig
Instances BooleanAllowed - Allows the patch job to run on Managed instance groups (MIGs).
- post
Step PatchDeployment Patch Config Post Step - The ExecStep to run after the patch update. Structure is documented below.
- pre
Step PatchDeployment Patch Config Pre Step - The ExecStep to run before the patch update. Structure is documented below.
- reboot
Config String - Post-patch reboot settings.
Possible values are:
DEFAULT
,ALWAYS
,NEVER
. - windows
Update PatchDeployment Patch Config Windows Update - Windows update settings. Use this setting to override the default Windows patch rules. Structure is documented below.
- yum
Patch
Deployment Patch Config Yum - Yum update settings. Use this setting to override the default yum patch rules. Structure is documented below.
- zypper
Patch
Deployment Patch Config Zypper - zypper update settings. Use this setting to override the default zypper patch rules. Structure is documented below.
- apt
Patch
Deployment Patch Config Apt - Apt update settings. Use this setting to override the default apt patch rules. Structure is documented below.
- goo
Patch
Deployment Patch Config Goo - goo update settings. Use this setting to override the default goo patch rules. Structure is documented below.
- mig
Instances booleanAllowed - Allows the patch job to run on Managed instance groups (MIGs).
- post
Step PatchDeployment Patch Config Post Step - The ExecStep to run after the patch update. Structure is documented below.
- pre
Step PatchDeployment Patch Config Pre Step - The ExecStep to run before the patch update. Structure is documented below.
- reboot
Config string - Post-patch reboot settings.
Possible values are:
DEFAULT
,ALWAYS
,NEVER
. - windows
Update PatchDeployment Patch Config Windows Update - Windows update settings. Use this setting to override the default Windows patch rules. Structure is documented below.
- yum
Patch
Deployment Patch Config Yum - Yum update settings. Use this setting to override the default yum patch rules. Structure is documented below.
- zypper
Patch
Deployment Patch Config Zypper - zypper update settings. Use this setting to override the default zypper patch rules. Structure is documented below.
- apt
Patch
Deployment Patch Config Apt - Apt update settings. Use this setting to override the default apt patch rules. Structure is documented below.
- goo
Patch
Deployment Patch Config Goo - goo update settings. Use this setting to override the default goo patch rules. Structure is documented below.
- mig_
instances_ boolallowed - Allows the patch job to run on Managed instance groups (MIGs).
- post_
step PatchDeployment Patch Config Post Step - The ExecStep to run after the patch update. Structure is documented below.
- pre_
step PatchDeployment Patch Config Pre Step - The ExecStep to run before the patch update. Structure is documented below.
- reboot_
config str - Post-patch reboot settings.
Possible values are:
DEFAULT
,ALWAYS
,NEVER
. - windows_
update PatchDeployment Patch Config Windows Update - Windows update settings. Use this setting to override the default Windows patch rules. Structure is documented below.
- yum
Patch
Deployment Patch Config Yum - Yum update settings. Use this setting to override the default yum patch rules. Structure is documented below.
- zypper
Patch
Deployment Patch Config Zypper - zypper update settings. Use this setting to override the default zypper patch rules. Structure is documented below.
- apt Property Map
- Apt update settings. Use this setting to override the default apt patch rules. Structure is documented below.
- goo Property Map
- goo update settings. Use this setting to override the default goo patch rules. Structure is documented below.
- mig
Instances BooleanAllowed - Allows the patch job to run on Managed instance groups (MIGs).
- post
Step Property Map - The ExecStep to run after the patch update. Structure is documented below.
- pre
Step Property Map - The ExecStep to run before the patch update. Structure is documented below.
- reboot
Config String - Post-patch reboot settings.
Possible values are:
DEFAULT
,ALWAYS
,NEVER
. - windows
Update Property Map - Windows update settings. Use this setting to override the default Windows patch rules. Structure is documented below.
- yum Property Map
- Yum update settings. Use this setting to override the default yum patch rules. Structure is documented below.
- zypper Property Map
- zypper update settings. Use this setting to override the default zypper patch rules. Structure is documented below.
PatchDeploymentPatchConfigApt, PatchDeploymentPatchConfigAptArgs
- Excludes List<string>
- List of packages to exclude from update. These packages will be excluded.
- Exclusive
Packages List<string> - An exclusive list of packages to be updated. These are the only packages that will be updated. If these packages are not installed, they will be ignored. This field cannot be specified with any other patch configuration fields.
- Type string
- By changing the type to DIST, the patching is performed using apt-get dist-upgrade instead.
Possible values are:
DIST
,UPGRADE
.
- Excludes []string
- List of packages to exclude from update. These packages will be excluded.
- Exclusive
Packages []string - An exclusive list of packages to be updated. These are the only packages that will be updated. If these packages are not installed, they will be ignored. This field cannot be specified with any other patch configuration fields.
- Type string
- By changing the type to DIST, the patching is performed using apt-get dist-upgrade instead.
Possible values are:
DIST
,UPGRADE
.
- excludes List<String>
- List of packages to exclude from update. These packages will be excluded.
- exclusive
Packages List<String> - An exclusive list of packages to be updated. These are the only packages that will be updated. If these packages are not installed, they will be ignored. This field cannot be specified with any other patch configuration fields.
- type String
- By changing the type to DIST, the patching is performed using apt-get dist-upgrade instead.
Possible values are:
DIST
,UPGRADE
.
- excludes string[]
- List of packages to exclude from update. These packages will be excluded.
- exclusive
Packages string[] - An exclusive list of packages to be updated. These are the only packages that will be updated. If these packages are not installed, they will be ignored. This field cannot be specified with any other patch configuration fields.
- type string
- By changing the type to DIST, the patching is performed using apt-get dist-upgrade instead.
Possible values are:
DIST
,UPGRADE
.
- excludes Sequence[str]
- List of packages to exclude from update. These packages will be excluded.
- exclusive_
packages Sequence[str] - An exclusive list of packages to be updated. These are the only packages that will be updated. If these packages are not installed, they will be ignored. This field cannot be specified with any other patch configuration fields.
- type str
- By changing the type to DIST, the patching is performed using apt-get dist-upgrade instead.
Possible values are:
DIST
,UPGRADE
.
- excludes List<String>
- List of packages to exclude from update. These packages will be excluded.
- exclusive
Packages List<String> - An exclusive list of packages to be updated. These are the only packages that will be updated. If these packages are not installed, they will be ignored. This field cannot be specified with any other patch configuration fields.
- type String
- By changing the type to DIST, the patching is performed using apt-get dist-upgrade instead.
Possible values are:
DIST
,UPGRADE
.
PatchDeploymentPatchConfigGoo, PatchDeploymentPatchConfigGooArgs
- Enabled bool
- goo update settings. Use this setting to override the default goo patch rules.
- Enabled bool
- goo update settings. Use this setting to override the default goo patch rules.
- enabled Boolean
- goo update settings. Use this setting to override the default goo patch rules.
- enabled boolean
- goo update settings. Use this setting to override the default goo patch rules.
- enabled bool
- goo update settings. Use this setting to override the default goo patch rules.
- enabled Boolean
- goo update settings. Use this setting to override the default goo patch rules.
PatchDeploymentPatchConfigPostStep, PatchDeploymentPatchConfigPostStepArgs
- Linux
Exec PatchStep Config Deployment Patch Config Post Step Linux Exec Step Config - The ExecStepConfig for all Linux VMs targeted by the PatchJob. Structure is documented below.
- Windows
Exec PatchStep Config Deployment Patch Config Post Step Windows Exec Step Config - The ExecStepConfig for all Windows VMs targeted by the PatchJob. Structure is documented below.
- Linux
Exec PatchStep Config Deployment Patch Config Post Step Linux Exec Step Config - The ExecStepConfig for all Linux VMs targeted by the PatchJob. Structure is documented below.
- Windows
Exec PatchStep Config Deployment Patch Config Post Step Windows Exec Step Config - The ExecStepConfig for all Windows VMs targeted by the PatchJob. Structure is documented below.
- linux
Exec PatchStep Config Deployment Patch Config Post Step Linux Exec Step Config - The ExecStepConfig for all Linux VMs targeted by the PatchJob. Structure is documented below.
- windows
Exec PatchStep Config Deployment Patch Config Post Step Windows Exec Step Config - The ExecStepConfig for all Windows VMs targeted by the PatchJob. Structure is documented below.
- linux
Exec PatchStep Config Deployment Patch Config Post Step Linux Exec Step Config - The ExecStepConfig for all Linux VMs targeted by the PatchJob. Structure is documented below.
- windows
Exec PatchStep Config Deployment Patch Config Post Step Windows Exec Step Config - The ExecStepConfig for all Windows VMs targeted by the PatchJob. Structure is documented below.
- linux_
exec_ Patchstep_ config Deployment Patch Config Post Step Linux Exec Step Config - The ExecStepConfig for all Linux VMs targeted by the PatchJob. Structure is documented below.
- windows_
exec_ Patchstep_ config Deployment Patch Config Post Step Windows Exec Step Config - The ExecStepConfig for all Windows VMs targeted by the PatchJob. Structure is documented below.
- linux
Exec Property MapStep Config - The ExecStepConfig for all Linux VMs targeted by the PatchJob. Structure is documented below.
- windows
Exec Property MapStep Config - The ExecStepConfig for all Windows VMs targeted by the PatchJob. Structure is documented below.
PatchDeploymentPatchConfigPostStepLinuxExecStepConfig, PatchDeploymentPatchConfigPostStepLinuxExecStepConfigArgs
- Allowed
Success List<int>Codes - Defaults to [0]. A list of possible return values that the execution can return to indicate a success.
- Gcs
Object PatchDeployment Patch Config Post Step Linux Exec Step Config Gcs Object - A Cloud Storage object containing the executable. Structure is documented below.
- Interpreter string
- The script interpreter to use to run the script. If no interpreter is specified the script will
be executed directly, which will likely only succeed for scripts with shebang lines.
Possible values are:
SHELL
,POWERSHELL
. - Local
Path string - An absolute path to the executable on the VM.
- Allowed
Success []intCodes - Defaults to [0]. A list of possible return values that the execution can return to indicate a success.
- Gcs
Object PatchDeployment Patch Config Post Step Linux Exec Step Config Gcs Object - A Cloud Storage object containing the executable. Structure is documented below.
- Interpreter string
- The script interpreter to use to run the script. If no interpreter is specified the script will
be executed directly, which will likely only succeed for scripts with shebang lines.
Possible values are:
SHELL
,POWERSHELL
. - Local
Path string - An absolute path to the executable on the VM.
- allowed
Success List<Integer>Codes - Defaults to [0]. A list of possible return values that the execution can return to indicate a success.
- gcs
Object PatchDeployment Patch Config Post Step Linux Exec Step Config Gcs Object - A Cloud Storage object containing the executable. Structure is documented below.
- interpreter String
- The script interpreter to use to run the script. If no interpreter is specified the script will
be executed directly, which will likely only succeed for scripts with shebang lines.
Possible values are:
SHELL
,POWERSHELL
. - local
Path String - An absolute path to the executable on the VM.
- allowed
Success number[]Codes - Defaults to [0]. A list of possible return values that the execution can return to indicate a success.
- gcs
Object PatchDeployment Patch Config Post Step Linux Exec Step Config Gcs Object - A Cloud Storage object containing the executable. Structure is documented below.
- interpreter string
- The script interpreter to use to run the script. If no interpreter is specified the script will
be executed directly, which will likely only succeed for scripts with shebang lines.
Possible values are:
SHELL
,POWERSHELL
. - local
Path string - An absolute path to the executable on the VM.
- allowed_
success_ Sequence[int]codes - Defaults to [0]. A list of possible return values that the execution can return to indicate a success.
- gcs_
object PatchDeployment Patch Config Post Step Linux Exec Step Config Gcs Object - A Cloud Storage object containing the executable. Structure is documented below.
- interpreter str
- The script interpreter to use to run the script. If no interpreter is specified the script will
be executed directly, which will likely only succeed for scripts with shebang lines.
Possible values are:
SHELL
,POWERSHELL
. - local_
path str - An absolute path to the executable on the VM.
- allowed
Success List<Number>Codes - Defaults to [0]. A list of possible return values that the execution can return to indicate a success.
- gcs
Object Property Map - A Cloud Storage object containing the executable. Structure is documented below.
- interpreter String
- The script interpreter to use to run the script. If no interpreter is specified the script will
be executed directly, which will likely only succeed for scripts with shebang lines.
Possible values are:
SHELL
,POWERSHELL
. - local
Path String - An absolute path to the executable on the VM.
PatchDeploymentPatchConfigPostStepLinuxExecStepConfigGcsObject, PatchDeploymentPatchConfigPostStepLinuxExecStepConfigGcsObjectArgs
- Bucket string
- Bucket of the Cloud Storage object.
- Generation
Number string - Generation number of the Cloud Storage object. This is used to ensure that the ExecStep specified by this PatchJob does not change.
- Object string
- Name of the Cloud Storage object.
- Bucket string
- Bucket of the Cloud Storage object.
- Generation
Number string - Generation number of the Cloud Storage object. This is used to ensure that the ExecStep specified by this PatchJob does not change.
- Object string
- Name of the Cloud Storage object.
- bucket String
- Bucket of the Cloud Storage object.
- generation
Number String - Generation number of the Cloud Storage object. This is used to ensure that the ExecStep specified by this PatchJob does not change.
- object String
- Name of the Cloud Storage object.
- bucket string
- Bucket of the Cloud Storage object.
- generation
Number string - Generation number of the Cloud Storage object. This is used to ensure that the ExecStep specified by this PatchJob does not change.
- object string
- Name of the Cloud Storage object.
- bucket str
- Bucket of the Cloud Storage object.
- generation_
number str - Generation number of the Cloud Storage object. This is used to ensure that the ExecStep specified by this PatchJob does not change.
- object str
- Name of the Cloud Storage object.
- bucket String
- Bucket of the Cloud Storage object.
- generation
Number String - Generation number of the Cloud Storage object. This is used to ensure that the ExecStep specified by this PatchJob does not change.
- object String
- Name of the Cloud Storage object.
PatchDeploymentPatchConfigPostStepWindowsExecStepConfig, PatchDeploymentPatchConfigPostStepWindowsExecStepConfigArgs
- Allowed
Success List<int>Codes - Defaults to [0]. A list of possible return values that the execution can return to indicate a success.
- Gcs
Object PatchDeployment Patch Config Post Step Windows Exec Step Config Gcs Object - A Cloud Storage object containing the executable. Structure is documented below.
- Interpreter string
- The script interpreter to use to run the script. If no interpreter is specified the script will
be executed directly, which will likely only succeed for scripts with shebang lines.
Possible values are:
SHELL
,POWERSHELL
. - Local
Path string - An absolute path to the executable on the VM.
- Allowed
Success []intCodes - Defaults to [0]. A list of possible return values that the execution can return to indicate a success.
- Gcs
Object PatchDeployment Patch Config Post Step Windows Exec Step Config Gcs Object - A Cloud Storage object containing the executable. Structure is documented below.
- Interpreter string
- The script interpreter to use to run the script. If no interpreter is specified the script will
be executed directly, which will likely only succeed for scripts with shebang lines.
Possible values are:
SHELL
,POWERSHELL
. - Local
Path string - An absolute path to the executable on the VM.
- allowed
Success List<Integer>Codes - Defaults to [0]. A list of possible return values that the execution can return to indicate a success.
- gcs
Object PatchDeployment Patch Config Post Step Windows Exec Step Config Gcs Object - A Cloud Storage object containing the executable. Structure is documented below.
- interpreter String
- The script interpreter to use to run the script. If no interpreter is specified the script will
be executed directly, which will likely only succeed for scripts with shebang lines.
Possible values are:
SHELL
,POWERSHELL
. - local
Path String - An absolute path to the executable on the VM.
- allowed
Success number[]Codes - Defaults to [0]. A list of possible return values that the execution can return to indicate a success.
- gcs
Object PatchDeployment Patch Config Post Step Windows Exec Step Config Gcs Object - A Cloud Storage object containing the executable. Structure is documented below.
- interpreter string
- The script interpreter to use to run the script. If no interpreter is specified the script will
be executed directly, which will likely only succeed for scripts with shebang lines.
Possible values are:
SHELL
,POWERSHELL
. - local
Path string - An absolute path to the executable on the VM.
- allowed_
success_ Sequence[int]codes - Defaults to [0]. A list of possible return values that the execution can return to indicate a success.
- gcs_
object PatchDeployment Patch Config Post Step Windows Exec Step Config Gcs Object - A Cloud Storage object containing the executable. Structure is documented below.
- interpreter str
- The script interpreter to use to run the script. If no interpreter is specified the script will
be executed directly, which will likely only succeed for scripts with shebang lines.
Possible values are:
SHELL
,POWERSHELL
. - local_
path str - An absolute path to the executable on the VM.
- allowed
Success List<Number>Codes - Defaults to [0]. A list of possible return values that the execution can return to indicate a success.
- gcs
Object Property Map - A Cloud Storage object containing the executable. Structure is documented below.
- interpreter String
- The script interpreter to use to run the script. If no interpreter is specified the script will
be executed directly, which will likely only succeed for scripts with shebang lines.
Possible values are:
SHELL
,POWERSHELL
. - local
Path String - An absolute path to the executable on the VM.
PatchDeploymentPatchConfigPostStepWindowsExecStepConfigGcsObject, PatchDeploymentPatchConfigPostStepWindowsExecStepConfigGcsObjectArgs
- Bucket string
- Bucket of the Cloud Storage object.
- Generation
Number string - Generation number of the Cloud Storage object. This is used to ensure that the ExecStep specified by this PatchJob does not change.
- Object string
- Name of the Cloud Storage object.
- Bucket string
- Bucket of the Cloud Storage object.
- Generation
Number string - Generation number of the Cloud Storage object. This is used to ensure that the ExecStep specified by this PatchJob does not change.
- Object string
- Name of the Cloud Storage object.
- bucket String
- Bucket of the Cloud Storage object.
- generation
Number String - Generation number of the Cloud Storage object. This is used to ensure that the ExecStep specified by this PatchJob does not change.
- object String
- Name of the Cloud Storage object.
- bucket string
- Bucket of the Cloud Storage object.
- generation
Number string - Generation number of the Cloud Storage object. This is used to ensure that the ExecStep specified by this PatchJob does not change.
- object string
- Name of the Cloud Storage object.
- bucket str
- Bucket of the Cloud Storage object.
- generation_
number str - Generation number of the Cloud Storage object. This is used to ensure that the ExecStep specified by this PatchJob does not change.
- object str
- Name of the Cloud Storage object.
- bucket String
- Bucket of the Cloud Storage object.
- generation
Number String - Generation number of the Cloud Storage object. This is used to ensure that the ExecStep specified by this PatchJob does not change.
- object String
- Name of the Cloud Storage object.
PatchDeploymentPatchConfigPreStep, PatchDeploymentPatchConfigPreStepArgs
- Linux
Exec PatchStep Config Deployment Patch Config Pre Step Linux Exec Step Config - The ExecStepConfig for all Linux VMs targeted by the PatchJob. Structure is documented below.
- Windows
Exec PatchStep Config Deployment Patch Config Pre Step Windows Exec Step Config - The ExecStepConfig for all Windows VMs targeted by the PatchJob. Structure is documented below.
- Linux
Exec PatchStep Config Deployment Patch Config Pre Step Linux Exec Step Config - The ExecStepConfig for all Linux VMs targeted by the PatchJob. Structure is documented below.
- Windows
Exec PatchStep Config Deployment Patch Config Pre Step Windows Exec Step Config - The ExecStepConfig for all Windows VMs targeted by the PatchJob. Structure is documented below.
- linux
Exec PatchStep Config Deployment Patch Config Pre Step Linux Exec Step Config - The ExecStepConfig for all Linux VMs targeted by the PatchJob. Structure is documented below.
- windows
Exec PatchStep Config Deployment Patch Config Pre Step Windows Exec Step Config - The ExecStepConfig for all Windows VMs targeted by the PatchJob. Structure is documented below.
- linux
Exec PatchStep Config Deployment Patch Config Pre Step Linux Exec Step Config - The ExecStepConfig for all Linux VMs targeted by the PatchJob. Structure is documented below.
- windows
Exec PatchStep Config Deployment Patch Config Pre Step Windows Exec Step Config - The ExecStepConfig for all Windows VMs targeted by the PatchJob. Structure is documented below.
- linux_
exec_ Patchstep_ config Deployment Patch Config Pre Step Linux Exec Step Config - The ExecStepConfig for all Linux VMs targeted by the PatchJob. Structure is documented below.
- windows_
exec_ Patchstep_ config Deployment Patch Config Pre Step Windows Exec Step Config - The ExecStepConfig for all Windows VMs targeted by the PatchJob. Structure is documented below.
- linux
Exec Property MapStep Config - The ExecStepConfig for all Linux VMs targeted by the PatchJob. Structure is documented below.
- windows
Exec Property MapStep Config - The ExecStepConfig for all Windows VMs targeted by the PatchJob. Structure is documented below.
PatchDeploymentPatchConfigPreStepLinuxExecStepConfig, PatchDeploymentPatchConfigPreStepLinuxExecStepConfigArgs
- Allowed
Success List<int>Codes - Defaults to [0]. A list of possible return values that the execution can return to indicate a success.
- Gcs
Object PatchDeployment Patch Config Pre Step Linux Exec Step Config Gcs Object - A Cloud Storage object containing the executable. Structure is documented below.
- Interpreter string
- The script interpreter to use to run the script. If no interpreter is specified the script will
be executed directly, which will likely only succeed for scripts with shebang lines.
Possible values are:
SHELL
,POWERSHELL
. - Local
Path string - An absolute path to the executable on the VM.
- Allowed
Success []intCodes - Defaults to [0]. A list of possible return values that the execution can return to indicate a success.
- Gcs
Object PatchDeployment Patch Config Pre Step Linux Exec Step Config Gcs Object - A Cloud Storage object containing the executable. Structure is documented below.
- Interpreter string
- The script interpreter to use to run the script. If no interpreter is specified the script will
be executed directly, which will likely only succeed for scripts with shebang lines.
Possible values are:
SHELL
,POWERSHELL
. - Local
Path string - An absolute path to the executable on the VM.
- allowed
Success List<Integer>Codes - Defaults to [0]. A list of possible return values that the execution can return to indicate a success.
- gcs
Object PatchDeployment Patch Config Pre Step Linux Exec Step Config Gcs Object - A Cloud Storage object containing the executable. Structure is documented below.
- interpreter String
- The script interpreter to use to run the script. If no interpreter is specified the script will
be executed directly, which will likely only succeed for scripts with shebang lines.
Possible values are:
SHELL
,POWERSHELL
. - local
Path String - An absolute path to the executable on the VM.
- allowed
Success number[]Codes - Defaults to [0]. A list of possible return values that the execution can return to indicate a success.
- gcs
Object PatchDeployment Patch Config Pre Step Linux Exec Step Config Gcs Object - A Cloud Storage object containing the executable. Structure is documented below.
- interpreter string
- The script interpreter to use to run the script. If no interpreter is specified the script will
be executed directly, which will likely only succeed for scripts with shebang lines.
Possible values are:
SHELL
,POWERSHELL
. - local
Path string - An absolute path to the executable on the VM.
- allowed_
success_ Sequence[int]codes - Defaults to [0]. A list of possible return values that the execution can return to indicate a success.
- gcs_
object PatchDeployment Patch Config Pre Step Linux Exec Step Config Gcs Object - A Cloud Storage object containing the executable. Structure is documented below.
- interpreter str
- The script interpreter to use to run the script. If no interpreter is specified the script will
be executed directly, which will likely only succeed for scripts with shebang lines.
Possible values are:
SHELL
,POWERSHELL
. - local_
path str - An absolute path to the executable on the VM.
- allowed
Success List<Number>Codes - Defaults to [0]. A list of possible return values that the execution can return to indicate a success.
- gcs
Object Property Map - A Cloud Storage object containing the executable. Structure is documented below.
- interpreter String
- The script interpreter to use to run the script. If no interpreter is specified the script will
be executed directly, which will likely only succeed for scripts with shebang lines.
Possible values are:
SHELL
,POWERSHELL
. - local
Path String - An absolute path to the executable on the VM.
PatchDeploymentPatchConfigPreStepLinuxExecStepConfigGcsObject, PatchDeploymentPatchConfigPreStepLinuxExecStepConfigGcsObjectArgs
- Bucket string
- Bucket of the Cloud Storage object.
- Generation
Number string - Generation number of the Cloud Storage object. This is used to ensure that the ExecStep specified by this PatchJob does not change.
- Object string
- Name of the Cloud Storage object.
- Bucket string
- Bucket of the Cloud Storage object.
- Generation
Number string - Generation number of the Cloud Storage object. This is used to ensure that the ExecStep specified by this PatchJob does not change.
- Object string
- Name of the Cloud Storage object.
- bucket String
- Bucket of the Cloud Storage object.
- generation
Number String - Generation number of the Cloud Storage object. This is used to ensure that the ExecStep specified by this PatchJob does not change.
- object String
- Name of the Cloud Storage object.
- bucket string
- Bucket of the Cloud Storage object.
- generation
Number string - Generation number of the Cloud Storage object. This is used to ensure that the ExecStep specified by this PatchJob does not change.
- object string
- Name of the Cloud Storage object.
- bucket str
- Bucket of the Cloud Storage object.
- generation_
number str - Generation number of the Cloud Storage object. This is used to ensure that the ExecStep specified by this PatchJob does not change.
- object str
- Name of the Cloud Storage object.
- bucket String
- Bucket of the Cloud Storage object.
- generation
Number String - Generation number of the Cloud Storage object. This is used to ensure that the ExecStep specified by this PatchJob does not change.
- object String
- Name of the Cloud Storage object.
PatchDeploymentPatchConfigPreStepWindowsExecStepConfig, PatchDeploymentPatchConfigPreStepWindowsExecStepConfigArgs
- Allowed
Success List<int>Codes - Defaults to [0]. A list of possible return values that the execution can return to indicate a success.
- Gcs
Object PatchDeployment Patch Config Pre Step Windows Exec Step Config Gcs Object - A Cloud Storage object containing the executable. Structure is documented below.
- Interpreter string
- The script interpreter to use to run the script. If no interpreter is specified the script will
be executed directly, which will likely only succeed for scripts with shebang lines.
Possible values are:
SHELL
,POWERSHELL
. - Local
Path string - An absolute path to the executable on the VM.
- Allowed
Success []intCodes - Defaults to [0]. A list of possible return values that the execution can return to indicate a success.
- Gcs
Object PatchDeployment Patch Config Pre Step Windows Exec Step Config Gcs Object - A Cloud Storage object containing the executable. Structure is documented below.
- Interpreter string
- The script interpreter to use to run the script. If no interpreter is specified the script will
be executed directly, which will likely only succeed for scripts with shebang lines.
Possible values are:
SHELL
,POWERSHELL
. - Local
Path string - An absolute path to the executable on the VM.
- allowed
Success List<Integer>Codes - Defaults to [0]. A list of possible return values that the execution can return to indicate a success.
- gcs
Object PatchDeployment Patch Config Pre Step Windows Exec Step Config Gcs Object - A Cloud Storage object containing the executable. Structure is documented below.
- interpreter String
- The script interpreter to use to run the script. If no interpreter is specified the script will
be executed directly, which will likely only succeed for scripts with shebang lines.
Possible values are:
SHELL
,POWERSHELL
. - local
Path String - An absolute path to the executable on the VM.
- allowed
Success number[]Codes - Defaults to [0]. A list of possible return values that the execution can return to indicate a success.
- gcs
Object PatchDeployment Patch Config Pre Step Windows Exec Step Config Gcs Object - A Cloud Storage object containing the executable. Structure is documented below.
- interpreter string
- The script interpreter to use to run the script. If no interpreter is specified the script will
be executed directly, which will likely only succeed for scripts with shebang lines.
Possible values are:
SHELL
,POWERSHELL
. - local
Path string - An absolute path to the executable on the VM.
- allowed_
success_ Sequence[int]codes - Defaults to [0]. A list of possible return values that the execution can return to indicate a success.
- gcs_
object PatchDeployment Patch Config Pre Step Windows Exec Step Config Gcs Object - A Cloud Storage object containing the executable. Structure is documented below.
- interpreter str
- The script interpreter to use to run the script. If no interpreter is specified the script will
be executed directly, which will likely only succeed for scripts with shebang lines.
Possible values are:
SHELL
,POWERSHELL
. - local_
path str - An absolute path to the executable on the VM.
- allowed
Success List<Number>Codes - Defaults to [0]. A list of possible return values that the execution can return to indicate a success.
- gcs
Object Property Map - A Cloud Storage object containing the executable. Structure is documented below.
- interpreter String
- The script interpreter to use to run the script. If no interpreter is specified the script will
be executed directly, which will likely only succeed for scripts with shebang lines.
Possible values are:
SHELL
,POWERSHELL
. - local
Path String - An absolute path to the executable on the VM.
PatchDeploymentPatchConfigPreStepWindowsExecStepConfigGcsObject, PatchDeploymentPatchConfigPreStepWindowsExecStepConfigGcsObjectArgs
- Bucket string
- Bucket of the Cloud Storage object.
- Generation
Number string - Generation number of the Cloud Storage object. This is used to ensure that the ExecStep specified by this PatchJob does not change.
- Object string
- Name of the Cloud Storage object.
- Bucket string
- Bucket of the Cloud Storage object.
- Generation
Number string - Generation number of the Cloud Storage object. This is used to ensure that the ExecStep specified by this PatchJob does not change.
- Object string
- Name of the Cloud Storage object.
- bucket String
- Bucket of the Cloud Storage object.
- generation
Number String - Generation number of the Cloud Storage object. This is used to ensure that the ExecStep specified by this PatchJob does not change.
- object String
- Name of the Cloud Storage object.
- bucket string
- Bucket of the Cloud Storage object.
- generation
Number string - Generation number of the Cloud Storage object. This is used to ensure that the ExecStep specified by this PatchJob does not change.
- object string
- Name of the Cloud Storage object.
- bucket str
- Bucket of the Cloud Storage object.
- generation_
number str - Generation number of the Cloud Storage object. This is used to ensure that the ExecStep specified by this PatchJob does not change.
- object str
- Name of the Cloud Storage object.
- bucket String
- Bucket of the Cloud Storage object.
- generation
Number String - Generation number of the Cloud Storage object. This is used to ensure that the ExecStep specified by this PatchJob does not change.
- object String
- Name of the Cloud Storage object.
PatchDeploymentPatchConfigWindowsUpdate, PatchDeploymentPatchConfigWindowsUpdateArgs
- Classifications List<string>
- Only apply updates of these windows update classifications. If empty, all updates are applied.
Each value may be one of:
CRITICAL
,SECURITY
,DEFINITION
,DRIVER
,FEATURE_PACK
,SERVICE_PACK
,TOOL
,UPDATE_ROLLUP
,UPDATE
. - Excludes List<string>
- List of KBs to exclude from update.
- Exclusive
Patches List<string> - An exclusive list of kbs to be updated. These are the only patches that will be updated. This field must not be used with other patch configurations.
- Classifications []string
- Only apply updates of these windows update classifications. If empty, all updates are applied.
Each value may be one of:
CRITICAL
,SECURITY
,DEFINITION
,DRIVER
,FEATURE_PACK
,SERVICE_PACK
,TOOL
,UPDATE_ROLLUP
,UPDATE
. - Excludes []string
- List of KBs to exclude from update.
- Exclusive
Patches []string - An exclusive list of kbs to be updated. These are the only patches that will be updated. This field must not be used with other patch configurations.
- classifications List<String>
- Only apply updates of these windows update classifications. If empty, all updates are applied.
Each value may be one of:
CRITICAL
,SECURITY
,DEFINITION
,DRIVER
,FEATURE_PACK
,SERVICE_PACK
,TOOL
,UPDATE_ROLLUP
,UPDATE
. - excludes List<String>
- List of KBs to exclude from update.
- exclusive
Patches List<String> - An exclusive list of kbs to be updated. These are the only patches that will be updated. This field must not be used with other patch configurations.
- classifications string[]
- Only apply updates of these windows update classifications. If empty, all updates are applied.
Each value may be one of:
CRITICAL
,SECURITY
,DEFINITION
,DRIVER
,FEATURE_PACK
,SERVICE_PACK
,TOOL
,UPDATE_ROLLUP
,UPDATE
. - excludes string[]
- List of KBs to exclude from update.
- exclusive
Patches string[] - An exclusive list of kbs to be updated. These are the only patches that will be updated. This field must not be used with other patch configurations.
- classifications Sequence[str]
- Only apply updates of these windows update classifications. If empty, all updates are applied.
Each value may be one of:
CRITICAL
,SECURITY
,DEFINITION
,DRIVER
,FEATURE_PACK
,SERVICE_PACK
,TOOL
,UPDATE_ROLLUP
,UPDATE
. - excludes Sequence[str]
- List of KBs to exclude from update.
- exclusive_
patches Sequence[str] - An exclusive list of kbs to be updated. These are the only patches that will be updated. This field must not be used with other patch configurations.
- classifications List<String>
- Only apply updates of these windows update classifications. If empty, all updates are applied.
Each value may be one of:
CRITICAL
,SECURITY
,DEFINITION
,DRIVER
,FEATURE_PACK
,SERVICE_PACK
,TOOL
,UPDATE_ROLLUP
,UPDATE
. - excludes List<String>
- List of KBs to exclude from update.
- exclusive
Patches List<String> - An exclusive list of kbs to be updated. These are the only patches that will be updated. This field must not be used with other patch configurations.
PatchDeploymentPatchConfigYum, PatchDeploymentPatchConfigYumArgs
- Excludes List<string>
- List of packages to exclude from update. These packages will be excluded.
- Exclusive
Packages List<string> - An exclusive list of packages to be updated. These are the only packages that will be updated. If these packages are not installed, they will be ignored. This field cannot be specified with any other patch configuration fields.
- Minimal bool
- Will cause patch to run yum update-minimal instead.
- Security bool
- Adds the --security flag to yum update. Not supported on all platforms.
- Excludes []string
- List of packages to exclude from update. These packages will be excluded.
- Exclusive
Packages []string - An exclusive list of packages to be updated. These are the only packages that will be updated. If these packages are not installed, they will be ignored. This field cannot be specified with any other patch configuration fields.
- Minimal bool
- Will cause patch to run yum update-minimal instead.
- Security bool
- Adds the --security flag to yum update. Not supported on all platforms.
- excludes List<String>
- List of packages to exclude from update. These packages will be excluded.
- exclusive
Packages List<String> - An exclusive list of packages to be updated. These are the only packages that will be updated. If these packages are not installed, they will be ignored. This field cannot be specified with any other patch configuration fields.
- minimal Boolean
- Will cause patch to run yum update-minimal instead.
- security Boolean
- Adds the --security flag to yum update. Not supported on all platforms.
- excludes string[]
- List of packages to exclude from update. These packages will be excluded.
- exclusive
Packages string[] - An exclusive list of packages to be updated. These are the only packages that will be updated. If these packages are not installed, they will be ignored. This field cannot be specified with any other patch configuration fields.
- minimal boolean
- Will cause patch to run yum update-minimal instead.
- security boolean
- Adds the --security flag to yum update. Not supported on all platforms.
- excludes Sequence[str]
- List of packages to exclude from update. These packages will be excluded.
- exclusive_
packages Sequence[str] - An exclusive list of packages to be updated. These are the only packages that will be updated. If these packages are not installed, they will be ignored. This field cannot be specified with any other patch configuration fields.
- minimal bool
- Will cause patch to run yum update-minimal instead.
- security bool
- Adds the --security flag to yum update. Not supported on all platforms.
- excludes List<String>
- List of packages to exclude from update. These packages will be excluded.
- exclusive
Packages List<String> - An exclusive list of packages to be updated. These are the only packages that will be updated. If these packages are not installed, they will be ignored. This field cannot be specified with any other patch configuration fields.
- minimal Boolean
- Will cause patch to run yum update-minimal instead.
- security Boolean
- Adds the --security flag to yum update. Not supported on all platforms.
PatchDeploymentPatchConfigZypper, PatchDeploymentPatchConfigZypperArgs
- Categories List<string>
- Install only patches with these categories. Common categories include security, recommended, and feature.
- Excludes List<string>
- List of packages to exclude from update.
- Exclusive
Patches List<string> - An exclusive list of patches to be updated. These are the only patches that will be installed using 'zypper patch patch:' command. This field must not be used with any other patch configuration fields.
- Severities List<string>
- Install only patches with these severities. Common severities include critical, important, moderate, and low.
- With
Optional bool - Adds the --with-optional flag to zypper patch.
- With
Update bool - Adds the --with-update flag, to zypper patch.
- Categories []string
- Install only patches with these categories. Common categories include security, recommended, and feature.
- Excludes []string
- List of packages to exclude from update.
- Exclusive
Patches []string - An exclusive list of patches to be updated. These are the only patches that will be installed using 'zypper patch patch:' command. This field must not be used with any other patch configuration fields.
- Severities []string
- Install only patches with these severities. Common severities include critical, important, moderate, and low.
- With
Optional bool - Adds the --with-optional flag to zypper patch.
- With
Update bool - Adds the --with-update flag, to zypper patch.
- categories List<String>
- Install only patches with these categories. Common categories include security, recommended, and feature.
- excludes List<String>
- List of packages to exclude from update.
- exclusive
Patches List<String> - An exclusive list of patches to be updated. These are the only patches that will be installed using 'zypper patch patch:' command. This field must not be used with any other patch configuration fields.
- severities List<String>
- Install only patches with these severities. Common severities include critical, important, moderate, and low.
- with
Optional Boolean - Adds the --with-optional flag to zypper patch.
- with
Update Boolean - Adds the --with-update flag, to zypper patch.
- categories string[]
- Install only patches with these categories. Common categories include security, recommended, and feature.
- excludes string[]
- List of packages to exclude from update.
- exclusive
Patches string[] - An exclusive list of patches to be updated. These are the only patches that will be installed using 'zypper patch patch:' command. This field must not be used with any other patch configuration fields.
- severities string[]
- Install only patches with these severities. Common severities include critical, important, moderate, and low.
- with
Optional boolean - Adds the --with-optional flag to zypper patch.
- with
Update boolean - Adds the --with-update flag, to zypper patch.
- categories Sequence[str]
- Install only patches with these categories. Common categories include security, recommended, and feature.
- excludes Sequence[str]
- List of packages to exclude from update.
- exclusive_
patches Sequence[str] - An exclusive list of patches to be updated. These are the only patches that will be installed using 'zypper patch patch:' command. This field must not be used with any other patch configuration fields.
- severities Sequence[str]
- Install only patches with these severities. Common severities include critical, important, moderate, and low.
- with_
optional bool - Adds the --with-optional flag to zypper patch.
- with_
update bool - Adds the --with-update flag, to zypper patch.
- categories List<String>
- Install only patches with these categories. Common categories include security, recommended, and feature.
- excludes List<String>
- List of packages to exclude from update.
- exclusive
Patches List<String> - An exclusive list of patches to be updated. These are the only patches that will be installed using 'zypper patch patch:' command. This field must not be used with any other patch configuration fields.
- severities List<String>
- Install only patches with these severities. Common severities include critical, important, moderate, and low.
- with
Optional Boolean - Adds the --with-optional flag to zypper patch.
- with
Update Boolean - Adds the --with-update flag, to zypper patch.
PatchDeploymentRecurringSchedule, PatchDeploymentRecurringScheduleArgs
- Time
Of PatchDay Deployment Recurring Schedule Time Of Day - Time of the day to run a recurring deployment. Structure is documented below.
- Time
Zone PatchDeployment Recurring Schedule Time Zone - Defines the time zone that timeOfDay is relative to. The rules for daylight saving time are determined by the chosen time zone. Structure is documented below.
- End
Time string - The end time at which a recurring patch deployment schedule is no longer active. A timestamp in RFC3339 UTC "Zulu" format, accurate to nanoseconds. Example: "2014-10-02T15:01:23.045123456Z".
- Last
Execute stringTime - (Output) The time the last patch job ran successfully. A timestamp in RFC3339 UTC "Zulu" format, accurate to nanoseconds. Example: "2014-10-02T15:01:23.045123456Z".
- Monthly
Patch
Deployment Recurring Schedule Monthly - Schedule with monthly executions. Structure is documented below.
- Next
Execute stringTime - (Output) The time the next patch job is scheduled to run. A timestamp in RFC3339 UTC "Zulu" format, accurate to nanoseconds. Example: "2014-10-02T15:01:23.045123456Z".
- Start
Time string - The time that the recurring schedule becomes effective. Defaults to createTime of the patch deployment. A timestamp in RFC3339 UTC "Zulu" format, accurate to nanoseconds. Example: "2014-10-02T15:01:23.045123456Z".
- Weekly
Patch
Deployment Recurring Schedule Weekly - Schedule with weekly executions. Structure is documented below.
- Time
Of PatchDay Deployment Recurring Schedule Time Of Day - Time of the day to run a recurring deployment. Structure is documented below.
- Time
Zone PatchDeployment Recurring Schedule Time Zone - Defines the time zone that timeOfDay is relative to. The rules for daylight saving time are determined by the chosen time zone. Structure is documented below.
- End
Time string - The end time at which a recurring patch deployment schedule is no longer active. A timestamp in RFC3339 UTC "Zulu" format, accurate to nanoseconds. Example: "2014-10-02T15:01:23.045123456Z".
- Last
Execute stringTime - (Output) The time the last patch job ran successfully. A timestamp in RFC3339 UTC "Zulu" format, accurate to nanoseconds. Example: "2014-10-02T15:01:23.045123456Z".
- Monthly
Patch
Deployment Recurring Schedule Monthly - Schedule with monthly executions. Structure is documented below.
- Next
Execute stringTime - (Output) The time the next patch job is scheduled to run. A timestamp in RFC3339 UTC "Zulu" format, accurate to nanoseconds. Example: "2014-10-02T15:01:23.045123456Z".
- Start
Time string - The time that the recurring schedule becomes effective. Defaults to createTime of the patch deployment. A timestamp in RFC3339 UTC "Zulu" format, accurate to nanoseconds. Example: "2014-10-02T15:01:23.045123456Z".
- Weekly
Patch
Deployment Recurring Schedule Weekly - Schedule with weekly executions. Structure is documented below.
- time
Of PatchDay Deployment Recurring Schedule Time Of Day - Time of the day to run a recurring deployment. Structure is documented below.
- time
Zone PatchDeployment Recurring Schedule Time Zone - Defines the time zone that timeOfDay is relative to. The rules for daylight saving time are determined by the chosen time zone. Structure is documented below.
- end
Time String - The end time at which a recurring patch deployment schedule is no longer active. A timestamp in RFC3339 UTC "Zulu" format, accurate to nanoseconds. Example: "2014-10-02T15:01:23.045123456Z".
- last
Execute StringTime - (Output) The time the last patch job ran successfully. A timestamp in RFC3339 UTC "Zulu" format, accurate to nanoseconds. Example: "2014-10-02T15:01:23.045123456Z".
- monthly
Patch
Deployment Recurring Schedule Monthly - Schedule with monthly executions. Structure is documented below.
- next
Execute StringTime - (Output) The time the next patch job is scheduled to run. A timestamp in RFC3339 UTC "Zulu" format, accurate to nanoseconds. Example: "2014-10-02T15:01:23.045123456Z".
- start
Time String - The time that the recurring schedule becomes effective. Defaults to createTime of the patch deployment. A timestamp in RFC3339 UTC "Zulu" format, accurate to nanoseconds. Example: "2014-10-02T15:01:23.045123456Z".
- weekly
Patch
Deployment Recurring Schedule Weekly - Schedule with weekly executions. Structure is documented below.
- time
Of PatchDay Deployment Recurring Schedule Time Of Day - Time of the day to run a recurring deployment. Structure is documented below.
- time
Zone PatchDeployment Recurring Schedule Time Zone - Defines the time zone that timeOfDay is relative to. The rules for daylight saving time are determined by the chosen time zone. Structure is documented below.
- end
Time string - The end time at which a recurring patch deployment schedule is no longer active. A timestamp in RFC3339 UTC "Zulu" format, accurate to nanoseconds. Example: "2014-10-02T15:01:23.045123456Z".
- last
Execute stringTime - (Output) The time the last patch job ran successfully. A timestamp in RFC3339 UTC "Zulu" format, accurate to nanoseconds. Example: "2014-10-02T15:01:23.045123456Z".
- monthly
Patch
Deployment Recurring Schedule Monthly - Schedule with monthly executions. Structure is documented below.
- next
Execute stringTime - (Output) The time the next patch job is scheduled to run. A timestamp in RFC3339 UTC "Zulu" format, accurate to nanoseconds. Example: "2014-10-02T15:01:23.045123456Z".
- start
Time string - The time that the recurring schedule becomes effective. Defaults to createTime of the patch deployment. A timestamp in RFC3339 UTC "Zulu" format, accurate to nanoseconds. Example: "2014-10-02T15:01:23.045123456Z".
- weekly
Patch
Deployment Recurring Schedule Weekly - Schedule with weekly executions. Structure is documented below.
- time_
of_ Patchday Deployment Recurring Schedule Time Of Day - Time of the day to run a recurring deployment. Structure is documented below.
- time_
zone PatchDeployment Recurring Schedule Time Zone - Defines the time zone that timeOfDay is relative to. The rules for daylight saving time are determined by the chosen time zone. Structure is documented below.
- end_
time str - The end time at which a recurring patch deployment schedule is no longer active. A timestamp in RFC3339 UTC "Zulu" format, accurate to nanoseconds. Example: "2014-10-02T15:01:23.045123456Z".
- last_
execute_ strtime - (Output) The time the last patch job ran successfully. A timestamp in RFC3339 UTC "Zulu" format, accurate to nanoseconds. Example: "2014-10-02T15:01:23.045123456Z".
- monthly
Patch
Deployment Recurring Schedule Monthly - Schedule with monthly executions. Structure is documented below.
- next_
execute_ strtime - (Output) The time the next patch job is scheduled to run. A timestamp in RFC3339 UTC "Zulu" format, accurate to nanoseconds. Example: "2014-10-02T15:01:23.045123456Z".
- start_
time str - The time that the recurring schedule becomes effective. Defaults to createTime of the patch deployment. A timestamp in RFC3339 UTC "Zulu" format, accurate to nanoseconds. Example: "2014-10-02T15:01:23.045123456Z".
- weekly
Patch
Deployment Recurring Schedule Weekly - Schedule with weekly executions. Structure is documented below.
- time
Of Property MapDay - Time of the day to run a recurring deployment. Structure is documented below.
- time
Zone Property Map - Defines the time zone that timeOfDay is relative to. The rules for daylight saving time are determined by the chosen time zone. Structure is documented below.
- end
Time String - The end time at which a recurring patch deployment schedule is no longer active. A timestamp in RFC3339 UTC "Zulu" format, accurate to nanoseconds. Example: "2014-10-02T15:01:23.045123456Z".
- last
Execute StringTime - (Output) The time the last patch job ran successfully. A timestamp in RFC3339 UTC "Zulu" format, accurate to nanoseconds. Example: "2014-10-02T15:01:23.045123456Z".
- monthly Property Map
- Schedule with monthly executions. Structure is documented below.
- next
Execute StringTime - (Output) The time the next patch job is scheduled to run. A timestamp in RFC3339 UTC "Zulu" format, accurate to nanoseconds. Example: "2014-10-02T15:01:23.045123456Z".
- start
Time String - The time that the recurring schedule becomes effective. Defaults to createTime of the patch deployment. A timestamp in RFC3339 UTC "Zulu" format, accurate to nanoseconds. Example: "2014-10-02T15:01:23.045123456Z".
- weekly Property Map
- Schedule with weekly executions. Structure is documented below.
PatchDeploymentRecurringScheduleMonthly, PatchDeploymentRecurringScheduleMonthlyArgs
- Month
Day int - One day of the month. 1-31 indicates the 1st to the 31st day. -1 indicates the last day of the month. Months without the target day will be skipped. For example, a schedule to run "every month on the 31st" will not run in February, April, June, etc.
- Week
Day PatchOf Month Deployment Recurring Schedule Monthly Week Day Of Month - Week day in a month. Structure is documented below.
- Month
Day int - One day of the month. 1-31 indicates the 1st to the 31st day. -1 indicates the last day of the month. Months without the target day will be skipped. For example, a schedule to run "every month on the 31st" will not run in February, April, June, etc.
- Week
Day PatchOf Month Deployment Recurring Schedule Monthly Week Day Of Month - Week day in a month. Structure is documented below.
- month
Day Integer - One day of the month. 1-31 indicates the 1st to the 31st day. -1 indicates the last day of the month. Months without the target day will be skipped. For example, a schedule to run "every month on the 31st" will not run in February, April, June, etc.
- week
Day PatchOf Month Deployment Recurring Schedule Monthly Week Day Of Month - Week day in a month. Structure is documented below.
- month
Day number - One day of the month. 1-31 indicates the 1st to the 31st day. -1 indicates the last day of the month. Months without the target day will be skipped. For example, a schedule to run "every month on the 31st" will not run in February, April, June, etc.
- week
Day PatchOf Month Deployment Recurring Schedule Monthly Week Day Of Month - Week day in a month. Structure is documented below.
- month_
day int - One day of the month. 1-31 indicates the 1st to the 31st day. -1 indicates the last day of the month. Months without the target day will be skipped. For example, a schedule to run "every month on the 31st" will not run in February, April, June, etc.
- week_
day_ Patchof_ month Deployment Recurring Schedule Monthly Week Day Of Month - Week day in a month. Structure is documented below.
- month
Day Number - One day of the month. 1-31 indicates the 1st to the 31st day. -1 indicates the last day of the month. Months without the target day will be skipped. For example, a schedule to run "every month on the 31st" will not run in February, April, June, etc.
- week
Day Property MapOf Month - Week day in a month. Structure is documented below.
PatchDeploymentRecurringScheduleMonthlyWeekDayOfMonth, PatchDeploymentRecurringScheduleMonthlyWeekDayOfMonthArgs
- Day
Of stringWeek - A day of the week.
Possible values are:
MONDAY
,TUESDAY
,WEDNESDAY
,THURSDAY
,FRIDAY
,SATURDAY
,SUNDAY
. - Week
Ordinal int - Week number in a month. 1-4 indicates the 1st to 4th week of the month. -1 indicates the last week of the month.
- Day
Offset int - Represents the number of days before or after the given week day of month that the patch deployment is scheduled for.
- Day
Of stringWeek - A day of the week.
Possible values are:
MONDAY
,TUESDAY
,WEDNESDAY
,THURSDAY
,FRIDAY
,SATURDAY
,SUNDAY
. - Week
Ordinal int - Week number in a month. 1-4 indicates the 1st to 4th week of the month. -1 indicates the last week of the month.
- Day
Offset int - Represents the number of days before or after the given week day of month that the patch deployment is scheduled for.
- day
Of StringWeek - A day of the week.
Possible values are:
MONDAY
,TUESDAY
,WEDNESDAY
,THURSDAY
,FRIDAY
,SATURDAY
,SUNDAY
. - week
Ordinal Integer - Week number in a month. 1-4 indicates the 1st to 4th week of the month. -1 indicates the last week of the month.
- day
Offset Integer - Represents the number of days before or after the given week day of month that the patch deployment is scheduled for.
- day
Of stringWeek - A day of the week.
Possible values are:
MONDAY
,TUESDAY
,WEDNESDAY
,THURSDAY
,FRIDAY
,SATURDAY
,SUNDAY
. - week
Ordinal number - Week number in a month. 1-4 indicates the 1st to 4th week of the month. -1 indicates the last week of the month.
- day
Offset number - Represents the number of days before or after the given week day of month that the patch deployment is scheduled for.
- day_
of_ strweek - A day of the week.
Possible values are:
MONDAY
,TUESDAY
,WEDNESDAY
,THURSDAY
,FRIDAY
,SATURDAY
,SUNDAY
. - week_
ordinal int - Week number in a month. 1-4 indicates the 1st to 4th week of the month. -1 indicates the last week of the month.
- day_
offset int - Represents the number of days before or after the given week day of month that the patch deployment is scheduled for.
- day
Of StringWeek - A day of the week.
Possible values are:
MONDAY
,TUESDAY
,WEDNESDAY
,THURSDAY
,FRIDAY
,SATURDAY
,SUNDAY
. - week
Ordinal Number - Week number in a month. 1-4 indicates the 1st to 4th week of the month. -1 indicates the last week of the month.
- day
Offset Number - Represents the number of days before or after the given week day of month that the patch deployment is scheduled for.
PatchDeploymentRecurringScheduleTimeOfDay, PatchDeploymentRecurringScheduleTimeOfDayArgs
- Hours int
- Hours of day in 24 hour format. Should be from 0 to 23. An API may choose to allow the value "24:00:00" for scenarios like business closing time.
- Minutes int
- Minutes of hour of day. Must be from 0 to 59.
- Nanos int
- Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999.
- Seconds int
- Seconds of minutes of the time. Must normally be from 0 to 59. An API may allow the value 60 if it allows leap-seconds.
- Hours int
- Hours of day in 24 hour format. Should be from 0 to 23. An API may choose to allow the value "24:00:00" for scenarios like business closing time.
- Minutes int
- Minutes of hour of day. Must be from 0 to 59.
- Nanos int
- Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999.
- Seconds int
- Seconds of minutes of the time. Must normally be from 0 to 59. An API may allow the value 60 if it allows leap-seconds.
- hours Integer
- Hours of day in 24 hour format. Should be from 0 to 23. An API may choose to allow the value "24:00:00" for scenarios like business closing time.
- minutes Integer
- Minutes of hour of day. Must be from 0 to 59.
- nanos Integer
- Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999.
- seconds Integer
- Seconds of minutes of the time. Must normally be from 0 to 59. An API may allow the value 60 if it allows leap-seconds.
- hours number
- Hours of day in 24 hour format. Should be from 0 to 23. An API may choose to allow the value "24:00:00" for scenarios like business closing time.
- minutes number
- Minutes of hour of day. Must be from 0 to 59.
- nanos number
- Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999.
- seconds number
- Seconds of minutes of the time. Must normally be from 0 to 59. An API may allow the value 60 if it allows leap-seconds.
- hours int
- Hours of day in 24 hour format. Should be from 0 to 23. An API may choose to allow the value "24:00:00" for scenarios like business closing time.
- minutes int
- Minutes of hour of day. Must be from 0 to 59.
- nanos int
- Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999.
- seconds int
- Seconds of minutes of the time. Must normally be from 0 to 59. An API may allow the value 60 if it allows leap-seconds.
- hours Number
- Hours of day in 24 hour format. Should be from 0 to 23. An API may choose to allow the value "24:00:00" for scenarios like business closing time.
- minutes Number
- Minutes of hour of day. Must be from 0 to 59.
- nanos Number
- Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999.
- seconds Number
- Seconds of minutes of the time. Must normally be from 0 to 59. An API may allow the value 60 if it allows leap-seconds.
PatchDeploymentRecurringScheduleTimeZone, PatchDeploymentRecurringScheduleTimeZoneArgs
PatchDeploymentRecurringScheduleWeekly, PatchDeploymentRecurringScheduleWeeklyArgs
- Day
Of stringWeek - IANA Time Zone Database time zone, e.g. "America/New_York".
Possible values are:
MONDAY
,TUESDAY
,WEDNESDAY
,THURSDAY
,FRIDAY
,SATURDAY
,SUNDAY
.
- Day
Of stringWeek - IANA Time Zone Database time zone, e.g. "America/New_York".
Possible values are:
MONDAY
,TUESDAY
,WEDNESDAY
,THURSDAY
,FRIDAY
,SATURDAY
,SUNDAY
.
- day
Of StringWeek - IANA Time Zone Database time zone, e.g. "America/New_York".
Possible values are:
MONDAY
,TUESDAY
,WEDNESDAY
,THURSDAY
,FRIDAY
,SATURDAY
,SUNDAY
.
- day
Of stringWeek - IANA Time Zone Database time zone, e.g. "America/New_York".
Possible values are:
MONDAY
,TUESDAY
,WEDNESDAY
,THURSDAY
,FRIDAY
,SATURDAY
,SUNDAY
.
- day_
of_ strweek - IANA Time Zone Database time zone, e.g. "America/New_York".
Possible values are:
MONDAY
,TUESDAY
,WEDNESDAY
,THURSDAY
,FRIDAY
,SATURDAY
,SUNDAY
.
- day
Of StringWeek - IANA Time Zone Database time zone, e.g. "America/New_York".
Possible values are:
MONDAY
,TUESDAY
,WEDNESDAY
,THURSDAY
,FRIDAY
,SATURDAY
,SUNDAY
.
PatchDeploymentRollout, PatchDeploymentRolloutArgs
- Disruption
Budget PatchDeployment Rollout Disruption Budget - The maximum number (or percentage) of VMs per zone to disrupt at any given moment. The number of VMs calculated from multiplying the percentage by the total number of VMs in a zone is rounded up. During patching, a VM is considered disrupted from the time the agent is notified to begin until patching has completed. This disruption time includes the time to complete reboot and any post-patch steps. A VM contributes to the disruption budget if its patching operation fails either when applying the patches, running pre or post patch steps, or if it fails to respond with a success notification before timing out. VMs that are not running or do not have an active agent do not count toward this disruption budget. For zone-by-zone rollouts, if the disruption budget in a zone is exceeded, the patch job stops, because continuing to the next zone requires completion of the patch process in the previous zone. For example, if the disruption budget has a fixed value of 10, and 8 VMs fail to patch in the current zone, the patch job continues to patch 2 VMs at a time until the zone is completed. When that zone is completed successfully, patching begins with 10 VMs at a time in the next zone. If 10 VMs in the next zone fail to patch, the patch job stops. Structure is documented below.
- Mode string
- Mode of the patch rollout.
Possible values are:
ZONE_BY_ZONE
,CONCURRENT_ZONES
.
- Disruption
Budget PatchDeployment Rollout Disruption Budget - The maximum number (or percentage) of VMs per zone to disrupt at any given moment. The number of VMs calculated from multiplying the percentage by the total number of VMs in a zone is rounded up. During patching, a VM is considered disrupted from the time the agent is notified to begin until patching has completed. This disruption time includes the time to complete reboot and any post-patch steps. A VM contributes to the disruption budget if its patching operation fails either when applying the patches, running pre or post patch steps, or if it fails to respond with a success notification before timing out. VMs that are not running or do not have an active agent do not count toward this disruption budget. For zone-by-zone rollouts, if the disruption budget in a zone is exceeded, the patch job stops, because continuing to the next zone requires completion of the patch process in the previous zone. For example, if the disruption budget has a fixed value of 10, and 8 VMs fail to patch in the current zone, the patch job continues to patch 2 VMs at a time until the zone is completed. When that zone is completed successfully, patching begins with 10 VMs at a time in the next zone. If 10 VMs in the next zone fail to patch, the patch job stops. Structure is documented below.
- Mode string
- Mode of the patch rollout.
Possible values are:
ZONE_BY_ZONE
,CONCURRENT_ZONES
.
- disruption
Budget PatchDeployment Rollout Disruption Budget - The maximum number (or percentage) of VMs per zone to disrupt at any given moment. The number of VMs calculated from multiplying the percentage by the total number of VMs in a zone is rounded up. During patching, a VM is considered disrupted from the time the agent is notified to begin until patching has completed. This disruption time includes the time to complete reboot and any post-patch steps. A VM contributes to the disruption budget if its patching operation fails either when applying the patches, running pre or post patch steps, or if it fails to respond with a success notification before timing out. VMs that are not running or do not have an active agent do not count toward this disruption budget. For zone-by-zone rollouts, if the disruption budget in a zone is exceeded, the patch job stops, because continuing to the next zone requires completion of the patch process in the previous zone. For example, if the disruption budget has a fixed value of 10, and 8 VMs fail to patch in the current zone, the patch job continues to patch 2 VMs at a time until the zone is completed. When that zone is completed successfully, patching begins with 10 VMs at a time in the next zone. If 10 VMs in the next zone fail to patch, the patch job stops. Structure is documented below.
- mode String
- Mode of the patch rollout.
Possible values are:
ZONE_BY_ZONE
,CONCURRENT_ZONES
.
- disruption
Budget PatchDeployment Rollout Disruption Budget - The maximum number (or percentage) of VMs per zone to disrupt at any given moment. The number of VMs calculated from multiplying the percentage by the total number of VMs in a zone is rounded up. During patching, a VM is considered disrupted from the time the agent is notified to begin until patching has completed. This disruption time includes the time to complete reboot and any post-patch steps. A VM contributes to the disruption budget if its patching operation fails either when applying the patches, running pre or post patch steps, or if it fails to respond with a success notification before timing out. VMs that are not running or do not have an active agent do not count toward this disruption budget. For zone-by-zone rollouts, if the disruption budget in a zone is exceeded, the patch job stops, because continuing to the next zone requires completion of the patch process in the previous zone. For example, if the disruption budget has a fixed value of 10, and 8 VMs fail to patch in the current zone, the patch job continues to patch 2 VMs at a time until the zone is completed. When that zone is completed successfully, patching begins with 10 VMs at a time in the next zone. If 10 VMs in the next zone fail to patch, the patch job stops. Structure is documented below.
- mode string
- Mode of the patch rollout.
Possible values are:
ZONE_BY_ZONE
,CONCURRENT_ZONES
.
- disruption_
budget PatchDeployment Rollout Disruption Budget - The maximum number (or percentage) of VMs per zone to disrupt at any given moment. The number of VMs calculated from multiplying the percentage by the total number of VMs in a zone is rounded up. During patching, a VM is considered disrupted from the time the agent is notified to begin until patching has completed. This disruption time includes the time to complete reboot and any post-patch steps. A VM contributes to the disruption budget if its patching operation fails either when applying the patches, running pre or post patch steps, or if it fails to respond with a success notification before timing out. VMs that are not running or do not have an active agent do not count toward this disruption budget. For zone-by-zone rollouts, if the disruption budget in a zone is exceeded, the patch job stops, because continuing to the next zone requires completion of the patch process in the previous zone. For example, if the disruption budget has a fixed value of 10, and 8 VMs fail to patch in the current zone, the patch job continues to patch 2 VMs at a time until the zone is completed. When that zone is completed successfully, patching begins with 10 VMs at a time in the next zone. If 10 VMs in the next zone fail to patch, the patch job stops. Structure is documented below.
- mode str
- Mode of the patch rollout.
Possible values are:
ZONE_BY_ZONE
,CONCURRENT_ZONES
.
- disruption
Budget Property Map - The maximum number (or percentage) of VMs per zone to disrupt at any given moment. The number of VMs calculated from multiplying the percentage by the total number of VMs in a zone is rounded up. During patching, a VM is considered disrupted from the time the agent is notified to begin until patching has completed. This disruption time includes the time to complete reboot and any post-patch steps. A VM contributes to the disruption budget if its patching operation fails either when applying the patches, running pre or post patch steps, or if it fails to respond with a success notification before timing out. VMs that are not running or do not have an active agent do not count toward this disruption budget. For zone-by-zone rollouts, if the disruption budget in a zone is exceeded, the patch job stops, because continuing to the next zone requires completion of the patch process in the previous zone. For example, if the disruption budget has a fixed value of 10, and 8 VMs fail to patch in the current zone, the patch job continues to patch 2 VMs at a time until the zone is completed. When that zone is completed successfully, patching begins with 10 VMs at a time in the next zone. If 10 VMs in the next zone fail to patch, the patch job stops. Structure is documented below.
- mode String
- Mode of the patch rollout.
Possible values are:
ZONE_BY_ZONE
,CONCURRENT_ZONES
.
PatchDeploymentRolloutDisruptionBudget, PatchDeploymentRolloutDisruptionBudgetArgs
- Fixed int
- Specifies a fixed value.
- Percentage int
- Specifies the relative value defined as a percentage, which will be multiplied by a reference value.
- Fixed int
- Specifies a fixed value.
- Percentage int
- Specifies the relative value defined as a percentage, which will be multiplied by a reference value.
- fixed Integer
- Specifies a fixed value.
- percentage Integer
- Specifies the relative value defined as a percentage, which will be multiplied by a reference value.
- fixed number
- Specifies a fixed value.
- percentage number
- Specifies the relative value defined as a percentage, which will be multiplied by a reference value.
- fixed int
- Specifies a fixed value.
- percentage int
- Specifies the relative value defined as a percentage, which will be multiplied by a reference value.
- fixed Number
- Specifies a fixed value.
- percentage Number
- Specifies the relative value defined as a percentage, which will be multiplied by a reference value.
Import
PatchDeployment can be imported using any of these accepted formats:
projects/{{project}}/patchDeployments/{{name}}
{{project}}/{{name}}
{{name}}
When using the pulumi import
command, PatchDeployment can be imported using one of the formats above. For example:
$ pulumi import gcp:osconfig/patchDeployment:PatchDeployment default projects/{{project}}/patchDeployments/{{name}}
$ pulumi import gcp:osconfig/patchDeployment:PatchDeployment default {{project}}/{{name}}
$ pulumi import gcp:osconfig/patchDeployment:PatchDeployment default {{name}}
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.