1. Packages
  2. Google Cloud Native
  3. API Docs
  4. osconfig
  5. osconfig/v1alpha
  6. OsPolicyAssignment

Google Cloud Native is in preview. Google Cloud Classic is fully supported.

Google Cloud Native v0.32.0 published on Wednesday, Nov 29, 2023 by Pulumi

google-native.osconfig/v1alpha.OsPolicyAssignment

Explore with Pulumi AI

Google Cloud Native is in preview. Google Cloud Classic is fully supported.

Google Cloud Native v0.32.0 published on Wednesday, Nov 29, 2023 by Pulumi

Create an OS policy assignment. This method also creates the first revision of the OS policy assignment. This method returns a long running operation (LRO) that contains the rollout details. The rollout can be cancelled by cancelling the LRO. For more information, see Method: projects.locations.osPolicyAssignments.operations.cancel.

Create OsPolicyAssignment Resource

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

Constructor syntax

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

@overload
def OsPolicyAssignment(resource_name: str,
                       opts: Optional[ResourceOptions] = None,
                       instance_filter: Optional[OSPolicyAssignmentInstanceFilterArgs] = None,
                       os_policies: Optional[Sequence[OSPolicyArgs]] = None,
                       os_policy_assignment_id: Optional[str] = None,
                       rollout: Optional[OSPolicyAssignmentRolloutArgs] = None,
                       description: Optional[str] = None,
                       etag: Optional[str] = None,
                       location: Optional[str] = None,
                       name: Optional[str] = None,
                       project: Optional[str] = None)
func NewOsPolicyAssignment(ctx *Context, name string, args OsPolicyAssignmentArgs, opts ...ResourceOption) (*OsPolicyAssignment, error)
public OsPolicyAssignment(string name, OsPolicyAssignmentArgs args, CustomResourceOptions? opts = null)
public OsPolicyAssignment(String name, OsPolicyAssignmentArgs args)
public OsPolicyAssignment(String name, OsPolicyAssignmentArgs args, CustomResourceOptions options)
type: google-native:osconfig/v1alpha:OsPolicyAssignment
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

Parameters

name This property is required. string
The unique name of the resource.
args This property is required. OsPolicyAssignmentArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args This property is required. OsPolicyAssignmentArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name This property is required. string
The unique name of the resource.
args This property is required. OsPolicyAssignmentArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args This property is required. OsPolicyAssignmentArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. OsPolicyAssignmentArgs
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 google_nativeOsPolicyAssignmentResource = new GoogleNative.OSConfig.V1Alpha.OsPolicyAssignment("google-nativeOsPolicyAssignmentResource", new()
{
    InstanceFilter = new GoogleNative.OSConfig.V1Alpha.Inputs.OSPolicyAssignmentInstanceFilterArgs
    {
        All = false,
        ExclusionLabels = new[]
        {
            new GoogleNative.OSConfig.V1Alpha.Inputs.OSPolicyAssignmentLabelSetArgs
            {
                Labels = 
                {
                    { "string", "string" },
                },
            },
        },
        InclusionLabels = new[]
        {
            new GoogleNative.OSConfig.V1Alpha.Inputs.OSPolicyAssignmentLabelSetArgs
            {
                Labels = 
                {
                    { "string", "string" },
                },
            },
        },
        Inventories = new[]
        {
            new GoogleNative.OSConfig.V1Alpha.Inputs.OSPolicyAssignmentInstanceFilterInventoryArgs
            {
                OsShortName = "string",
                OsVersion = "string",
            },
        },
    },
    OsPolicies = new[]
    {
        new GoogleNative.OSConfig.V1Alpha.Inputs.OSPolicyArgs
        {
            Id = "string",
            Mode = GoogleNative.OSConfig.V1Alpha.OSPolicyMode.ModeUnspecified,
            ResourceGroups = new[]
            {
                new GoogleNative.OSConfig.V1Alpha.Inputs.OSPolicyResourceGroupArgs
                {
                    Resources = new[]
                    {
                        new GoogleNative.OSConfig.V1Alpha.Inputs.OSPolicyResourceArgs
                        {
                            Id = "string",
                            Exec = new GoogleNative.OSConfig.V1Alpha.Inputs.OSPolicyResourceExecResourceArgs
                            {
                                Validate = new GoogleNative.OSConfig.V1Alpha.Inputs.OSPolicyResourceExecResourceExecArgs
                                {
                                    Interpreter = GoogleNative.OSConfig.V1Alpha.OSPolicyResourceExecResourceExecInterpreter.InterpreterUnspecified,
                                    Args = new[]
                                    {
                                        "string",
                                    },
                                    File = new GoogleNative.OSConfig.V1Alpha.Inputs.OSPolicyResourceFileArgs
                                    {
                                        AllowInsecure = false,
                                        Gcs = new GoogleNative.OSConfig.V1Alpha.Inputs.OSPolicyResourceFileGcsArgs
                                        {
                                            Bucket = "string",
                                            Object = "string",
                                            Generation = "string",
                                        },
                                        LocalPath = "string",
                                        Remote = new GoogleNative.OSConfig.V1Alpha.Inputs.OSPolicyResourceFileRemoteArgs
                                        {
                                            Uri = "string",
                                            Sha256Checksum = "string",
                                        },
                                    },
                                    OutputFilePath = "string",
                                    Script = "string",
                                },
                                Enforce = new GoogleNative.OSConfig.V1Alpha.Inputs.OSPolicyResourceExecResourceExecArgs
                                {
                                    Interpreter = GoogleNative.OSConfig.V1Alpha.OSPolicyResourceExecResourceExecInterpreter.InterpreterUnspecified,
                                    Args = new[]
                                    {
                                        "string",
                                    },
                                    File = new GoogleNative.OSConfig.V1Alpha.Inputs.OSPolicyResourceFileArgs
                                    {
                                        AllowInsecure = false,
                                        Gcs = new GoogleNative.OSConfig.V1Alpha.Inputs.OSPolicyResourceFileGcsArgs
                                        {
                                            Bucket = "string",
                                            Object = "string",
                                            Generation = "string",
                                        },
                                        LocalPath = "string",
                                        Remote = new GoogleNative.OSConfig.V1Alpha.Inputs.OSPolicyResourceFileRemoteArgs
                                        {
                                            Uri = "string",
                                            Sha256Checksum = "string",
                                        },
                                    },
                                    OutputFilePath = "string",
                                    Script = "string",
                                },
                            },
                            File = new GoogleNative.OSConfig.V1Alpha.Inputs.OSPolicyResourceFileResourceArgs
                            {
                                Path = "string",
                                State = GoogleNative.OSConfig.V1Alpha.OSPolicyResourceFileResourceState.DesiredStateUnspecified,
                                Content = "string",
                                File = new GoogleNative.OSConfig.V1Alpha.Inputs.OSPolicyResourceFileArgs
                                {
                                    AllowInsecure = false,
                                    Gcs = new GoogleNative.OSConfig.V1Alpha.Inputs.OSPolicyResourceFileGcsArgs
                                    {
                                        Bucket = "string",
                                        Object = "string",
                                        Generation = "string",
                                    },
                                    LocalPath = "string",
                                    Remote = new GoogleNative.OSConfig.V1Alpha.Inputs.OSPolicyResourceFileRemoteArgs
                                    {
                                        Uri = "string",
                                        Sha256Checksum = "string",
                                    },
                                },
                                Permissions = "string",
                            },
                            Pkg = new GoogleNative.OSConfig.V1Alpha.Inputs.OSPolicyResourcePackageResourceArgs
                            {
                                DesiredState = GoogleNative.OSConfig.V1Alpha.OSPolicyResourcePackageResourceDesiredState.DesiredStateUnspecified,
                                Apt = new GoogleNative.OSConfig.V1Alpha.Inputs.OSPolicyResourcePackageResourceAPTArgs
                                {
                                    Name = "string",
                                },
                                Deb = new GoogleNative.OSConfig.V1Alpha.Inputs.OSPolicyResourcePackageResourceDebArgs
                                {
                                    Source = new GoogleNative.OSConfig.V1Alpha.Inputs.OSPolicyResourceFileArgs
                                    {
                                        AllowInsecure = false,
                                        Gcs = new GoogleNative.OSConfig.V1Alpha.Inputs.OSPolicyResourceFileGcsArgs
                                        {
                                            Bucket = "string",
                                            Object = "string",
                                            Generation = "string",
                                        },
                                        LocalPath = "string",
                                        Remote = new GoogleNative.OSConfig.V1Alpha.Inputs.OSPolicyResourceFileRemoteArgs
                                        {
                                            Uri = "string",
                                            Sha256Checksum = "string",
                                        },
                                    },
                                    PullDeps = false,
                                },
                                Googet = new GoogleNative.OSConfig.V1Alpha.Inputs.OSPolicyResourcePackageResourceGooGetArgs
                                {
                                    Name = "string",
                                },
                                Msi = new GoogleNative.OSConfig.V1Alpha.Inputs.OSPolicyResourcePackageResourceMSIArgs
                                {
                                    Source = new GoogleNative.OSConfig.V1Alpha.Inputs.OSPolicyResourceFileArgs
                                    {
                                        AllowInsecure = false,
                                        Gcs = new GoogleNative.OSConfig.V1Alpha.Inputs.OSPolicyResourceFileGcsArgs
                                        {
                                            Bucket = "string",
                                            Object = "string",
                                            Generation = "string",
                                        },
                                        LocalPath = "string",
                                        Remote = new GoogleNative.OSConfig.V1Alpha.Inputs.OSPolicyResourceFileRemoteArgs
                                        {
                                            Uri = "string",
                                            Sha256Checksum = "string",
                                        },
                                    },
                                    Properties = new[]
                                    {
                                        "string",
                                    },
                                },
                                Rpm = new GoogleNative.OSConfig.V1Alpha.Inputs.OSPolicyResourcePackageResourceRPMArgs
                                {
                                    Source = new GoogleNative.OSConfig.V1Alpha.Inputs.OSPolicyResourceFileArgs
                                    {
                                        AllowInsecure = false,
                                        Gcs = new GoogleNative.OSConfig.V1Alpha.Inputs.OSPolicyResourceFileGcsArgs
                                        {
                                            Bucket = "string",
                                            Object = "string",
                                            Generation = "string",
                                        },
                                        LocalPath = "string",
                                        Remote = new GoogleNative.OSConfig.V1Alpha.Inputs.OSPolicyResourceFileRemoteArgs
                                        {
                                            Uri = "string",
                                            Sha256Checksum = "string",
                                        },
                                    },
                                    PullDeps = false,
                                },
                                Yum = new GoogleNative.OSConfig.V1Alpha.Inputs.OSPolicyResourcePackageResourceYUMArgs
                                {
                                    Name = "string",
                                },
                                Zypper = new GoogleNative.OSConfig.V1Alpha.Inputs.OSPolicyResourcePackageResourceZypperArgs
                                {
                                    Name = "string",
                                },
                            },
                            Repository = new GoogleNative.OSConfig.V1Alpha.Inputs.OSPolicyResourceRepositoryResourceArgs
                            {
                                Apt = new GoogleNative.OSConfig.V1Alpha.Inputs.OSPolicyResourceRepositoryResourceAptRepositoryArgs
                                {
                                    ArchiveType = GoogleNative.OSConfig.V1Alpha.OSPolicyResourceRepositoryResourceAptRepositoryArchiveType.ArchiveTypeUnspecified,
                                    Components = new[]
                                    {
                                        "string",
                                    },
                                    Distribution = "string",
                                    Uri = "string",
                                    GpgKey = "string",
                                },
                                Goo = new GoogleNative.OSConfig.V1Alpha.Inputs.OSPolicyResourceRepositoryResourceGooRepositoryArgs
                                {
                                    Name = "string",
                                    Url = "string",
                                },
                                Yum = new GoogleNative.OSConfig.V1Alpha.Inputs.OSPolicyResourceRepositoryResourceYumRepositoryArgs
                                {
                                    BaseUrl = "string",
                                    Id = "string",
                                    DisplayName = "string",
                                    GpgKeys = new[]
                                    {
                                        "string",
                                    },
                                },
                                Zypper = new GoogleNative.OSConfig.V1Alpha.Inputs.OSPolicyResourceRepositoryResourceZypperRepositoryArgs
                                {
                                    BaseUrl = "string",
                                    Id = "string",
                                    DisplayName = "string",
                                    GpgKeys = new[]
                                    {
                                        "string",
                                    },
                                },
                            },
                        },
                    },
                    InventoryFilters = new[]
                    {
                        new GoogleNative.OSConfig.V1Alpha.Inputs.OSPolicyInventoryFilterArgs
                        {
                            OsShortName = "string",
                            OsVersion = "string",
                        },
                    },
                },
            },
            AllowNoResourceGroupMatch = false,
            Description = "string",
        },
    },
    OsPolicyAssignmentId = "string",
    Rollout = new GoogleNative.OSConfig.V1Alpha.Inputs.OSPolicyAssignmentRolloutArgs
    {
        DisruptionBudget = new GoogleNative.OSConfig.V1Alpha.Inputs.FixedOrPercentArgs
        {
            Fixed = 0,
            Percent = 0,
        },
        MinWaitDuration = "string",
    },
    Description = "string",
    Etag = "string",
    Location = "string",
    Name = "string",
    Project = "string",
});
Copy
example, err := osconfigv1alpha.NewOsPolicyAssignment(ctx, "google-nativeOsPolicyAssignmentResource", &osconfigv1alpha.OsPolicyAssignmentArgs{
	InstanceFilter: &osconfig.OSPolicyAssignmentInstanceFilterArgs{
		All: pulumi.Bool(false),
		ExclusionLabels: osconfig.OSPolicyAssignmentLabelSetArray{
			&osconfig.OSPolicyAssignmentLabelSetArgs{
				Labels: pulumi.StringMap{
					"string": pulumi.String("string"),
				},
			},
		},
		InclusionLabels: osconfig.OSPolicyAssignmentLabelSetArray{
			&osconfig.OSPolicyAssignmentLabelSetArgs{
				Labels: pulumi.StringMap{
					"string": pulumi.String("string"),
				},
			},
		},
		Inventories: osconfig.OSPolicyAssignmentInstanceFilterInventoryArray{
			&osconfig.OSPolicyAssignmentInstanceFilterInventoryArgs{
				OsShortName: pulumi.String("string"),
				OsVersion:   pulumi.String("string"),
			},
		},
	},
	OsPolicies: osconfig.OSPolicyArray{
		&osconfig.OSPolicyArgs{
			Id:   pulumi.String("string"),
			Mode: osconfigv1alpha.OSPolicyModeModeUnspecified,
			ResourceGroups: osconfig.OSPolicyResourceGroupArray{
				&osconfig.OSPolicyResourceGroupArgs{
					Resources: osconfig.OSPolicyResourceArray{
						&osconfig.OSPolicyResourceArgs{
							Id: pulumi.String("string"),
							Exec: &osconfig.OSPolicyResourceExecResourceArgs{
								Validate: &osconfig.OSPolicyResourceExecResourceExecArgs{
									Interpreter: osconfigv1alpha.OSPolicyResourceExecResourceExecInterpreterInterpreterUnspecified,
									Args: pulumi.StringArray{
										pulumi.String("string"),
									},
									File: &osconfig.OSPolicyResourceFileArgs{
										AllowInsecure: pulumi.Bool(false),
										Gcs: &osconfig.OSPolicyResourceFileGcsArgs{
											Bucket:     pulumi.String("string"),
											Object:     pulumi.String("string"),
											Generation: pulumi.String("string"),
										},
										LocalPath: pulumi.String("string"),
										Remote: &osconfig.OSPolicyResourceFileRemoteArgs{
											Uri:            pulumi.String("string"),
											Sha256Checksum: pulumi.String("string"),
										},
									},
									OutputFilePath: pulumi.String("string"),
									Script:         pulumi.String("string"),
								},
								Enforce: &osconfig.OSPolicyResourceExecResourceExecArgs{
									Interpreter: osconfigv1alpha.OSPolicyResourceExecResourceExecInterpreterInterpreterUnspecified,
									Args: pulumi.StringArray{
										pulumi.String("string"),
									},
									File: &osconfig.OSPolicyResourceFileArgs{
										AllowInsecure: pulumi.Bool(false),
										Gcs: &osconfig.OSPolicyResourceFileGcsArgs{
											Bucket:     pulumi.String("string"),
											Object:     pulumi.String("string"),
											Generation: pulumi.String("string"),
										},
										LocalPath: pulumi.String("string"),
										Remote: &osconfig.OSPolicyResourceFileRemoteArgs{
											Uri:            pulumi.String("string"),
											Sha256Checksum: pulumi.String("string"),
										},
									},
									OutputFilePath: pulumi.String("string"),
									Script:         pulumi.String("string"),
								},
							},
							File: &osconfig.OSPolicyResourceFileResourceArgs{
								Path:    pulumi.String("string"),
								State:   osconfigv1alpha.OSPolicyResourceFileResourceStateDesiredStateUnspecified,
								Content: pulumi.String("string"),
								File: &osconfig.OSPolicyResourceFileArgs{
									AllowInsecure: pulumi.Bool(false),
									Gcs: &osconfig.OSPolicyResourceFileGcsArgs{
										Bucket:     pulumi.String("string"),
										Object:     pulumi.String("string"),
										Generation: pulumi.String("string"),
									},
									LocalPath: pulumi.String("string"),
									Remote: &osconfig.OSPolicyResourceFileRemoteArgs{
										Uri:            pulumi.String("string"),
										Sha256Checksum: pulumi.String("string"),
									},
								},
								Permissions: pulumi.String("string"),
							},
							Pkg: &osconfig.OSPolicyResourcePackageResourceArgs{
								DesiredState: osconfigv1alpha.OSPolicyResourcePackageResourceDesiredStateDesiredStateUnspecified,
								Apt: &osconfig.OSPolicyResourcePackageResourceAPTArgs{
									Name: pulumi.String("string"),
								},
								Deb: &osconfig.OSPolicyResourcePackageResourceDebArgs{
									Source: &osconfig.OSPolicyResourceFileArgs{
										AllowInsecure: pulumi.Bool(false),
										Gcs: &osconfig.OSPolicyResourceFileGcsArgs{
											Bucket:     pulumi.String("string"),
											Object:     pulumi.String("string"),
											Generation: pulumi.String("string"),
										},
										LocalPath: pulumi.String("string"),
										Remote: &osconfig.OSPolicyResourceFileRemoteArgs{
											Uri:            pulumi.String("string"),
											Sha256Checksum: pulumi.String("string"),
										},
									},
									PullDeps: pulumi.Bool(false),
								},
								Googet: &osconfig.OSPolicyResourcePackageResourceGooGetArgs{
									Name: pulumi.String("string"),
								},
								Msi: &osconfig.OSPolicyResourcePackageResourceMSIArgs{
									Source: &osconfig.OSPolicyResourceFileArgs{
										AllowInsecure: pulumi.Bool(false),
										Gcs: &osconfig.OSPolicyResourceFileGcsArgs{
											Bucket:     pulumi.String("string"),
											Object:     pulumi.String("string"),
											Generation: pulumi.String("string"),
										},
										LocalPath: pulumi.String("string"),
										Remote: &osconfig.OSPolicyResourceFileRemoteArgs{
											Uri:            pulumi.String("string"),
											Sha256Checksum: pulumi.String("string"),
										},
									},
									Properties: pulumi.StringArray{
										pulumi.String("string"),
									},
								},
								Rpm: &osconfig.OSPolicyResourcePackageResourceRPMArgs{
									Source: &osconfig.OSPolicyResourceFileArgs{
										AllowInsecure: pulumi.Bool(false),
										Gcs: &osconfig.OSPolicyResourceFileGcsArgs{
											Bucket:     pulumi.String("string"),
											Object:     pulumi.String("string"),
											Generation: pulumi.String("string"),
										},
										LocalPath: pulumi.String("string"),
										Remote: &osconfig.OSPolicyResourceFileRemoteArgs{
											Uri:            pulumi.String("string"),
											Sha256Checksum: pulumi.String("string"),
										},
									},
									PullDeps: pulumi.Bool(false),
								},
								Yum: &osconfig.OSPolicyResourcePackageResourceYUMArgs{
									Name: pulumi.String("string"),
								},
								Zypper: &osconfig.OSPolicyResourcePackageResourceZypperArgs{
									Name: pulumi.String("string"),
								},
							},
							Repository: &osconfig.OSPolicyResourceRepositoryResourceArgs{
								Apt: &osconfig.OSPolicyResourceRepositoryResourceAptRepositoryArgs{
									ArchiveType: osconfigv1alpha.OSPolicyResourceRepositoryResourceAptRepositoryArchiveTypeArchiveTypeUnspecified,
									Components: pulumi.StringArray{
										pulumi.String("string"),
									},
									Distribution: pulumi.String("string"),
									Uri:          pulumi.String("string"),
									GpgKey:       pulumi.String("string"),
								},
								Goo: &osconfig.OSPolicyResourceRepositoryResourceGooRepositoryArgs{
									Name: pulumi.String("string"),
									Url:  pulumi.String("string"),
								},
								Yum: &osconfig.OSPolicyResourceRepositoryResourceYumRepositoryArgs{
									BaseUrl:     pulumi.String("string"),
									Id:          pulumi.String("string"),
									DisplayName: pulumi.String("string"),
									GpgKeys: pulumi.StringArray{
										pulumi.String("string"),
									},
								},
								Zypper: &osconfig.OSPolicyResourceRepositoryResourceZypperRepositoryArgs{
									BaseUrl:     pulumi.String("string"),
									Id:          pulumi.String("string"),
									DisplayName: pulumi.String("string"),
									GpgKeys: pulumi.StringArray{
										pulumi.String("string"),
									},
								},
							},
						},
					},
					InventoryFilters: osconfig.OSPolicyInventoryFilterArray{
						&osconfig.OSPolicyInventoryFilterArgs{
							OsShortName: pulumi.String("string"),
							OsVersion:   pulumi.String("string"),
						},
					},
				},
			},
			AllowNoResourceGroupMatch: pulumi.Bool(false),
			Description:               pulumi.String("string"),
		},
	},
	OsPolicyAssignmentId: pulumi.String("string"),
	Rollout: &osconfig.OSPolicyAssignmentRolloutArgs{
		DisruptionBudget: &osconfig.FixedOrPercentArgs{
			Fixed:   pulumi.Int(0),
			Percent: pulumi.Int(0),
		},
		MinWaitDuration: pulumi.String("string"),
	},
	Description: pulumi.String("string"),
	Etag:        pulumi.String("string"),
	Location:    pulumi.String("string"),
	Name:        pulumi.String("string"),
	Project:     pulumi.String("string"),
})
Copy
var google_nativeOsPolicyAssignmentResource = new OsPolicyAssignment("google-nativeOsPolicyAssignmentResource", OsPolicyAssignmentArgs.builder()
    .instanceFilter(OSPolicyAssignmentInstanceFilterArgs.builder()
        .all(false)
        .exclusionLabels(OSPolicyAssignmentLabelSetArgs.builder()
            .labels(Map.of("string", "string"))
            .build())
        .inclusionLabels(OSPolicyAssignmentLabelSetArgs.builder()
            .labels(Map.of("string", "string"))
            .build())
        .inventories(OSPolicyAssignmentInstanceFilterInventoryArgs.builder()
            .osShortName("string")
            .osVersion("string")
            .build())
        .build())
    .osPolicies(OSPolicyArgs.builder()
        .id("string")
        .mode("MODE_UNSPECIFIED")
        .resourceGroups(OSPolicyResourceGroupArgs.builder()
            .resources(OSPolicyResourceArgs.builder()
                .id("string")
                .exec(OSPolicyResourceExecResourceArgs.builder()
                    .validate(OSPolicyResourceExecResourceExecArgs.builder()
                        .interpreter("INTERPRETER_UNSPECIFIED")
                        .args("string")
                        .file(OSPolicyResourceFileArgs.builder()
                            .allowInsecure(false)
                            .gcs(OSPolicyResourceFileGcsArgs.builder()
                                .bucket("string")
                                .object("string")
                                .generation("string")
                                .build())
                            .localPath("string")
                            .remote(OSPolicyResourceFileRemoteArgs.builder()
                                .uri("string")
                                .sha256Checksum("string")
                                .build())
                            .build())
                        .outputFilePath("string")
                        .script("string")
                        .build())
                    .enforce(OSPolicyResourceExecResourceExecArgs.builder()
                        .interpreter("INTERPRETER_UNSPECIFIED")
                        .args("string")
                        .file(OSPolicyResourceFileArgs.builder()
                            .allowInsecure(false)
                            .gcs(OSPolicyResourceFileGcsArgs.builder()
                                .bucket("string")
                                .object("string")
                                .generation("string")
                                .build())
                            .localPath("string")
                            .remote(OSPolicyResourceFileRemoteArgs.builder()
                                .uri("string")
                                .sha256Checksum("string")
                                .build())
                            .build())
                        .outputFilePath("string")
                        .script("string")
                        .build())
                    .build())
                .file(OSPolicyResourceFileResourceArgs.builder()
                    .path("string")
                    .state("DESIRED_STATE_UNSPECIFIED")
                    .content("string")
                    .file(OSPolicyResourceFileArgs.builder()
                        .allowInsecure(false)
                        .gcs(OSPolicyResourceFileGcsArgs.builder()
                            .bucket("string")
                            .object("string")
                            .generation("string")
                            .build())
                        .localPath("string")
                        .remote(OSPolicyResourceFileRemoteArgs.builder()
                            .uri("string")
                            .sha256Checksum("string")
                            .build())
                        .build())
                    .permissions("string")
                    .build())
                .pkg(OSPolicyResourcePackageResourceArgs.builder()
                    .desiredState("DESIRED_STATE_UNSPECIFIED")
                    .apt(OSPolicyResourcePackageResourceAPTArgs.builder()
                        .name("string")
                        .build())
                    .deb(OSPolicyResourcePackageResourceDebArgs.builder()
                        .source(OSPolicyResourceFileArgs.builder()
                            .allowInsecure(false)
                            .gcs(OSPolicyResourceFileGcsArgs.builder()
                                .bucket("string")
                                .object("string")
                                .generation("string")
                                .build())
                            .localPath("string")
                            .remote(OSPolicyResourceFileRemoteArgs.builder()
                                .uri("string")
                                .sha256Checksum("string")
                                .build())
                            .build())
                        .pullDeps(false)
                        .build())
                    .googet(OSPolicyResourcePackageResourceGooGetArgs.builder()
                        .name("string")
                        .build())
                    .msi(OSPolicyResourcePackageResourceMSIArgs.builder()
                        .source(OSPolicyResourceFileArgs.builder()
                            .allowInsecure(false)
                            .gcs(OSPolicyResourceFileGcsArgs.builder()
                                .bucket("string")
                                .object("string")
                                .generation("string")
                                .build())
                            .localPath("string")
                            .remote(OSPolicyResourceFileRemoteArgs.builder()
                                .uri("string")
                                .sha256Checksum("string")
                                .build())
                            .build())
                        .properties("string")
                        .build())
                    .rpm(OSPolicyResourcePackageResourceRPMArgs.builder()
                        .source(OSPolicyResourceFileArgs.builder()
                            .allowInsecure(false)
                            .gcs(OSPolicyResourceFileGcsArgs.builder()
                                .bucket("string")
                                .object("string")
                                .generation("string")
                                .build())
                            .localPath("string")
                            .remote(OSPolicyResourceFileRemoteArgs.builder()
                                .uri("string")
                                .sha256Checksum("string")
                                .build())
                            .build())
                        .pullDeps(false)
                        .build())
                    .yum(OSPolicyResourcePackageResourceYUMArgs.builder()
                        .name("string")
                        .build())
                    .zypper(OSPolicyResourcePackageResourceZypperArgs.builder()
                        .name("string")
                        .build())
                    .build())
                .repository(OSPolicyResourceRepositoryResourceArgs.builder()
                    .apt(OSPolicyResourceRepositoryResourceAptRepositoryArgs.builder()
                        .archiveType("ARCHIVE_TYPE_UNSPECIFIED")
                        .components("string")
                        .distribution("string")
                        .uri("string")
                        .gpgKey("string")
                        .build())
                    .goo(OSPolicyResourceRepositoryResourceGooRepositoryArgs.builder()
                        .name("string")
                        .url("string")
                        .build())
                    .yum(OSPolicyResourceRepositoryResourceYumRepositoryArgs.builder()
                        .baseUrl("string")
                        .id("string")
                        .displayName("string")
                        .gpgKeys("string")
                        .build())
                    .zypper(OSPolicyResourceRepositoryResourceZypperRepositoryArgs.builder()
                        .baseUrl("string")
                        .id("string")
                        .displayName("string")
                        .gpgKeys("string")
                        .build())
                    .build())
                .build())
            .inventoryFilters(OSPolicyInventoryFilterArgs.builder()
                .osShortName("string")
                .osVersion("string")
                .build())
            .build())
        .allowNoResourceGroupMatch(false)
        .description("string")
        .build())
    .osPolicyAssignmentId("string")
    .rollout(OSPolicyAssignmentRolloutArgs.builder()
        .disruptionBudget(FixedOrPercentArgs.builder()
            .fixed(0)
            .percent(0)
            .build())
        .minWaitDuration("string")
        .build())
    .description("string")
    .etag("string")
    .location("string")
    .name("string")
    .project("string")
    .build());
Copy
google_native_os_policy_assignment_resource = google_native.osconfig.v1alpha.OsPolicyAssignment("google-nativeOsPolicyAssignmentResource",
    instance_filter={
        "all": False,
        "exclusion_labels": [{
            "labels": {
                "string": "string",
            },
        }],
        "inclusion_labels": [{
            "labels": {
                "string": "string",
            },
        }],
        "inventories": [{
            "os_short_name": "string",
            "os_version": "string",
        }],
    },
    os_policies=[{
        "id": "string",
        "mode": google_native.osconfig.v1alpha.OSPolicyMode.MODE_UNSPECIFIED,
        "resource_groups": [{
            "resources": [{
                "id": "string",
                "exec_": {
                    "validate": {
                        "interpreter": google_native.osconfig.v1alpha.OSPolicyResourceExecResourceExecInterpreter.INTERPRETER_UNSPECIFIED,
                        "args": ["string"],
                        "file": {
                            "allow_insecure": False,
                            "gcs": {
                                "bucket": "string",
                                "object": "string",
                                "generation": "string",
                            },
                            "local_path": "string",
                            "remote": {
                                "uri": "string",
                                "sha256_checksum": "string",
                            },
                        },
                        "output_file_path": "string",
                        "script": "string",
                    },
                    "enforce": {
                        "interpreter": google_native.osconfig.v1alpha.OSPolicyResourceExecResourceExecInterpreter.INTERPRETER_UNSPECIFIED,
                        "args": ["string"],
                        "file": {
                            "allow_insecure": False,
                            "gcs": {
                                "bucket": "string",
                                "object": "string",
                                "generation": "string",
                            },
                            "local_path": "string",
                            "remote": {
                                "uri": "string",
                                "sha256_checksum": "string",
                            },
                        },
                        "output_file_path": "string",
                        "script": "string",
                    },
                },
                "file": {
                    "path": "string",
                    "state": google_native.osconfig.v1alpha.OSPolicyResourceFileResourceState.DESIRED_STATE_UNSPECIFIED,
                    "content": "string",
                    "file": {
                        "allow_insecure": False,
                        "gcs": {
                            "bucket": "string",
                            "object": "string",
                            "generation": "string",
                        },
                        "local_path": "string",
                        "remote": {
                            "uri": "string",
                            "sha256_checksum": "string",
                        },
                    },
                    "permissions": "string",
                },
                "pkg": {
                    "desired_state": google_native.osconfig.v1alpha.OSPolicyResourcePackageResourceDesiredState.DESIRED_STATE_UNSPECIFIED,
                    "apt": {
                        "name": "string",
                    },
                    "deb": {
                        "source": {
                            "allow_insecure": False,
                            "gcs": {
                                "bucket": "string",
                                "object": "string",
                                "generation": "string",
                            },
                            "local_path": "string",
                            "remote": {
                                "uri": "string",
                                "sha256_checksum": "string",
                            },
                        },
                        "pull_deps": False,
                    },
                    "googet": {
                        "name": "string",
                    },
                    "msi": {
                        "source": {
                            "allow_insecure": False,
                            "gcs": {
                                "bucket": "string",
                                "object": "string",
                                "generation": "string",
                            },
                            "local_path": "string",
                            "remote": {
                                "uri": "string",
                                "sha256_checksum": "string",
                            },
                        },
                        "properties": ["string"],
                    },
                    "rpm": {
                        "source": {
                            "allow_insecure": False,
                            "gcs": {
                                "bucket": "string",
                                "object": "string",
                                "generation": "string",
                            },
                            "local_path": "string",
                            "remote": {
                                "uri": "string",
                                "sha256_checksum": "string",
                            },
                        },
                        "pull_deps": False,
                    },
                    "yum": {
                        "name": "string",
                    },
                    "zypper": {
                        "name": "string",
                    },
                },
                "repository": {
                    "apt": {
                        "archive_type": google_native.osconfig.v1alpha.OSPolicyResourceRepositoryResourceAptRepositoryArchiveType.ARCHIVE_TYPE_UNSPECIFIED,
                        "components": ["string"],
                        "distribution": "string",
                        "uri": "string",
                        "gpg_key": "string",
                    },
                    "goo": {
                        "name": "string",
                        "url": "string",
                    },
                    "yum": {
                        "base_url": "string",
                        "id": "string",
                        "display_name": "string",
                        "gpg_keys": ["string"],
                    },
                    "zypper": {
                        "base_url": "string",
                        "id": "string",
                        "display_name": "string",
                        "gpg_keys": ["string"],
                    },
                },
            }],
            "inventory_filters": [{
                "os_short_name": "string",
                "os_version": "string",
            }],
        }],
        "allow_no_resource_group_match": False,
        "description": "string",
    }],
    os_policy_assignment_id="string",
    rollout={
        "disruption_budget": {
            "fixed": 0,
            "percent": 0,
        },
        "min_wait_duration": "string",
    },
    description="string",
    etag="string",
    location="string",
    name="string",
    project="string")
Copy
const google_nativeOsPolicyAssignmentResource = new google_native.osconfig.v1alpha.OsPolicyAssignment("google-nativeOsPolicyAssignmentResource", {
    instanceFilter: {
        all: false,
        exclusionLabels: [{
            labels: {
                string: "string",
            },
        }],
        inclusionLabels: [{
            labels: {
                string: "string",
            },
        }],
        inventories: [{
            osShortName: "string",
            osVersion: "string",
        }],
    },
    osPolicies: [{
        id: "string",
        mode: google_native.osconfig.v1alpha.OSPolicyMode.ModeUnspecified,
        resourceGroups: [{
            resources: [{
                id: "string",
                exec: {
                    validate: {
                        interpreter: google_native.osconfig.v1alpha.OSPolicyResourceExecResourceExecInterpreter.InterpreterUnspecified,
                        args: ["string"],
                        file: {
                            allowInsecure: false,
                            gcs: {
                                bucket: "string",
                                object: "string",
                                generation: "string",
                            },
                            localPath: "string",
                            remote: {
                                uri: "string",
                                sha256Checksum: "string",
                            },
                        },
                        outputFilePath: "string",
                        script: "string",
                    },
                    enforce: {
                        interpreter: google_native.osconfig.v1alpha.OSPolicyResourceExecResourceExecInterpreter.InterpreterUnspecified,
                        args: ["string"],
                        file: {
                            allowInsecure: false,
                            gcs: {
                                bucket: "string",
                                object: "string",
                                generation: "string",
                            },
                            localPath: "string",
                            remote: {
                                uri: "string",
                                sha256Checksum: "string",
                            },
                        },
                        outputFilePath: "string",
                        script: "string",
                    },
                },
                file: {
                    path: "string",
                    state: google_native.osconfig.v1alpha.OSPolicyResourceFileResourceState.DesiredStateUnspecified,
                    content: "string",
                    file: {
                        allowInsecure: false,
                        gcs: {
                            bucket: "string",
                            object: "string",
                            generation: "string",
                        },
                        localPath: "string",
                        remote: {
                            uri: "string",
                            sha256Checksum: "string",
                        },
                    },
                    permissions: "string",
                },
                pkg: {
                    desiredState: google_native.osconfig.v1alpha.OSPolicyResourcePackageResourceDesiredState.DesiredStateUnspecified,
                    apt: {
                        name: "string",
                    },
                    deb: {
                        source: {
                            allowInsecure: false,
                            gcs: {
                                bucket: "string",
                                object: "string",
                                generation: "string",
                            },
                            localPath: "string",
                            remote: {
                                uri: "string",
                                sha256Checksum: "string",
                            },
                        },
                        pullDeps: false,
                    },
                    googet: {
                        name: "string",
                    },
                    msi: {
                        source: {
                            allowInsecure: false,
                            gcs: {
                                bucket: "string",
                                object: "string",
                                generation: "string",
                            },
                            localPath: "string",
                            remote: {
                                uri: "string",
                                sha256Checksum: "string",
                            },
                        },
                        properties: ["string"],
                    },
                    rpm: {
                        source: {
                            allowInsecure: false,
                            gcs: {
                                bucket: "string",
                                object: "string",
                                generation: "string",
                            },
                            localPath: "string",
                            remote: {
                                uri: "string",
                                sha256Checksum: "string",
                            },
                        },
                        pullDeps: false,
                    },
                    yum: {
                        name: "string",
                    },
                    zypper: {
                        name: "string",
                    },
                },
                repository: {
                    apt: {
                        archiveType: google_native.osconfig.v1alpha.OSPolicyResourceRepositoryResourceAptRepositoryArchiveType.ArchiveTypeUnspecified,
                        components: ["string"],
                        distribution: "string",
                        uri: "string",
                        gpgKey: "string",
                    },
                    goo: {
                        name: "string",
                        url: "string",
                    },
                    yum: {
                        baseUrl: "string",
                        id: "string",
                        displayName: "string",
                        gpgKeys: ["string"],
                    },
                    zypper: {
                        baseUrl: "string",
                        id: "string",
                        displayName: "string",
                        gpgKeys: ["string"],
                    },
                },
            }],
            inventoryFilters: [{
                osShortName: "string",
                osVersion: "string",
            }],
        }],
        allowNoResourceGroupMatch: false,
        description: "string",
    }],
    osPolicyAssignmentId: "string",
    rollout: {
        disruptionBudget: {
            fixed: 0,
            percent: 0,
        },
        minWaitDuration: "string",
    },
    description: "string",
    etag: "string",
    location: "string",
    name: "string",
    project: "string",
});
Copy
type: google-native:osconfig/v1alpha:OsPolicyAssignment
properties:
    description: string
    etag: string
    instanceFilter:
        all: false
        exclusionLabels:
            - labels:
                string: string
        inclusionLabels:
            - labels:
                string: string
        inventories:
            - osShortName: string
              osVersion: string
    location: string
    name: string
    osPolicies:
        - allowNoResourceGroupMatch: false
          description: string
          id: string
          mode: MODE_UNSPECIFIED
          resourceGroups:
            - inventoryFilters:
                - osShortName: string
                  osVersion: string
              resources:
                - exec:
                    enforce:
                        args:
                            - string
                        file:
                            allowInsecure: false
                            gcs:
                                bucket: string
                                generation: string
                                object: string
                            localPath: string
                            remote:
                                sha256Checksum: string
                                uri: string
                        interpreter: INTERPRETER_UNSPECIFIED
                        outputFilePath: string
                        script: string
                    validate:
                        args:
                            - string
                        file:
                            allowInsecure: false
                            gcs:
                                bucket: string
                                generation: string
                                object: string
                            localPath: string
                            remote:
                                sha256Checksum: string
                                uri: string
                        interpreter: INTERPRETER_UNSPECIFIED
                        outputFilePath: string
                        script: string
                  file:
                    content: string
                    file:
                        allowInsecure: false
                        gcs:
                            bucket: string
                            generation: string
                            object: string
                        localPath: string
                        remote:
                            sha256Checksum: string
                            uri: string
                    path: string
                    permissions: string
                    state: DESIRED_STATE_UNSPECIFIED
                  id: string
                  pkg:
                    apt:
                        name: string
                    deb:
                        pullDeps: false
                        source:
                            allowInsecure: false
                            gcs:
                                bucket: string
                                generation: string
                                object: string
                            localPath: string
                            remote:
                                sha256Checksum: string
                                uri: string
                    desiredState: DESIRED_STATE_UNSPECIFIED
                    googet:
                        name: string
                    msi:
                        properties:
                            - string
                        source:
                            allowInsecure: false
                            gcs:
                                bucket: string
                                generation: string
                                object: string
                            localPath: string
                            remote:
                                sha256Checksum: string
                                uri: string
                    rpm:
                        pullDeps: false
                        source:
                            allowInsecure: false
                            gcs:
                                bucket: string
                                generation: string
                                object: string
                            localPath: string
                            remote:
                                sha256Checksum: string
                                uri: string
                    yum:
                        name: string
                    zypper:
                        name: string
                  repository:
                    apt:
                        archiveType: ARCHIVE_TYPE_UNSPECIFIED
                        components:
                            - string
                        distribution: string
                        gpgKey: string
                        uri: string
                    goo:
                        name: string
                        url: string
                    yum:
                        baseUrl: string
                        displayName: string
                        gpgKeys:
                            - string
                        id: string
                    zypper:
                        baseUrl: string
                        displayName: string
                        gpgKeys:
                            - string
                        id: string
    osPolicyAssignmentId: string
    project: string
    rollout:
        disruptionBudget:
            fixed: 0
            percent: 0
        minWaitDuration: string
Copy

OsPolicyAssignment Resource Properties

To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

Inputs

In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

The OsPolicyAssignment resource accepts the following input properties:

InstanceFilter This property is required. Pulumi.GoogleNative.OSConfig.V1Alpha.Inputs.OSPolicyAssignmentInstanceFilter
Filter to select VMs.
OsPolicies This property is required. List<Pulumi.GoogleNative.OSConfig.V1Alpha.Inputs.OSPolicy>
List of OS policies to be applied to the VMs.
OsPolicyAssignmentId
This property is required.
Changes to this property will trigger replacement.
string
Required. The logical name of the OS policy assignment in the project with the following restrictions: * 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.
Rollout This property is required. Pulumi.GoogleNative.OSConfig.V1Alpha.Inputs.OSPolicyAssignmentRollout
Rollout to deploy the OS policy assignment. A rollout is triggered in the following situations: 1) OSPolicyAssignment is created. 2) OSPolicyAssignment is updated and the update contains changes to one of the following fields: - instance_filter - os_policies 3) OSPolicyAssignment is deleted.
Description string
OS policy assignment description. Length of the description is limited to 1024 characters.
Etag string
The etag for this OS policy assignment. If this is provided on update, it must match the server's etag.
Location Changes to this property will trigger replacement. string
Name string
Resource name. Format: projects/{project_number}/locations/{location}/osPolicyAssignments/{os_policy_assignment_id} This field is ignored when you create an OS policy assignment.
Project Changes to this property will trigger replacement. string
InstanceFilter This property is required. OSPolicyAssignmentInstanceFilterArgs
Filter to select VMs.
OsPolicies This property is required. []OSPolicyArgs
List of OS policies to be applied to the VMs.
OsPolicyAssignmentId
This property is required.
Changes to this property will trigger replacement.
string
Required. The logical name of the OS policy assignment in the project with the following restrictions: * 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.
Rollout This property is required. OSPolicyAssignmentRolloutArgs
Rollout to deploy the OS policy assignment. A rollout is triggered in the following situations: 1) OSPolicyAssignment is created. 2) OSPolicyAssignment is updated and the update contains changes to one of the following fields: - instance_filter - os_policies 3) OSPolicyAssignment is deleted.
Description string
OS policy assignment description. Length of the description is limited to 1024 characters.
Etag string
The etag for this OS policy assignment. If this is provided on update, it must match the server's etag.
Location Changes to this property will trigger replacement. string
Name string
Resource name. Format: projects/{project_number}/locations/{location}/osPolicyAssignments/{os_policy_assignment_id} This field is ignored when you create an OS policy assignment.
Project Changes to this property will trigger replacement. string
instanceFilter This property is required. OSPolicyAssignmentInstanceFilter
Filter to select VMs.
osPolicies This property is required. List<OSPolicy>
List of OS policies to be applied to the VMs.
osPolicyAssignmentId
This property is required.
Changes to this property will trigger replacement.
String
Required. The logical name of the OS policy assignment in the project with the following restrictions: * 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.
rollout This property is required. OSPolicyAssignmentRollout
Rollout to deploy the OS policy assignment. A rollout is triggered in the following situations: 1) OSPolicyAssignment is created. 2) OSPolicyAssignment is updated and the update contains changes to one of the following fields: - instance_filter - os_policies 3) OSPolicyAssignment is deleted.
description String
OS policy assignment description. Length of the description is limited to 1024 characters.
etag String
The etag for this OS policy assignment. If this is provided on update, it must match the server's etag.
location Changes to this property will trigger replacement. String
name String
Resource name. Format: projects/{project_number}/locations/{location}/osPolicyAssignments/{os_policy_assignment_id} This field is ignored when you create an OS policy assignment.
project Changes to this property will trigger replacement. String
instanceFilter This property is required. OSPolicyAssignmentInstanceFilter
Filter to select VMs.
osPolicies This property is required. OSPolicy[]
List of OS policies to be applied to the VMs.
osPolicyAssignmentId
This property is required.
Changes to this property will trigger replacement.
string
Required. The logical name of the OS policy assignment in the project with the following restrictions: * 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.
rollout This property is required. OSPolicyAssignmentRollout
Rollout to deploy the OS policy assignment. A rollout is triggered in the following situations: 1) OSPolicyAssignment is created. 2) OSPolicyAssignment is updated and the update contains changes to one of the following fields: - instance_filter - os_policies 3) OSPolicyAssignment is deleted.
description string
OS policy assignment description. Length of the description is limited to 1024 characters.
etag string
The etag for this OS policy assignment. If this is provided on update, it must match the server's etag.
location Changes to this property will trigger replacement. string
name string
Resource name. Format: projects/{project_number}/locations/{location}/osPolicyAssignments/{os_policy_assignment_id} This field is ignored when you create an OS policy assignment.
project Changes to this property will trigger replacement. string
instance_filter This property is required. OSPolicyAssignmentInstanceFilterArgs
Filter to select VMs.
os_policies This property is required. Sequence[OSPolicyArgs]
List of OS policies to be applied to the VMs.
os_policy_assignment_id
This property is required.
Changes to this property will trigger replacement.
str
Required. The logical name of the OS policy assignment in the project with the following restrictions: * 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.
rollout This property is required. OSPolicyAssignmentRolloutArgs
Rollout to deploy the OS policy assignment. A rollout is triggered in the following situations: 1) OSPolicyAssignment is created. 2) OSPolicyAssignment is updated and the update contains changes to one of the following fields: - instance_filter - os_policies 3) OSPolicyAssignment is deleted.
description str
OS policy assignment description. Length of the description is limited to 1024 characters.
etag str
The etag for this OS policy assignment. If this is provided on update, it must match the server's etag.
location Changes to this property will trigger replacement. str
name str
Resource name. Format: projects/{project_number}/locations/{location}/osPolicyAssignments/{os_policy_assignment_id} This field is ignored when you create an OS policy assignment.
project Changes to this property will trigger replacement. str
instanceFilter This property is required. Property Map
Filter to select VMs.
osPolicies This property is required. List<Property Map>
List of OS policies to be applied to the VMs.
osPolicyAssignmentId
This property is required.
Changes to this property will trigger replacement.
String
Required. The logical name of the OS policy assignment in the project with the following restrictions: * 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.
rollout This property is required. Property Map
Rollout to deploy the OS policy assignment. A rollout is triggered in the following situations: 1) OSPolicyAssignment is created. 2) OSPolicyAssignment is updated and the update contains changes to one of the following fields: - instance_filter - os_policies 3) OSPolicyAssignment is deleted.
description String
OS policy assignment description. Length of the description is limited to 1024 characters.
etag String
The etag for this OS policy assignment. If this is provided on update, it must match the server's etag.
location Changes to this property will trigger replacement. String
name String
Resource name. Format: projects/{project_number}/locations/{location}/osPolicyAssignments/{os_policy_assignment_id} This field is ignored when you create an OS policy assignment.
project Changes to this property will trigger replacement. String

Outputs

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

Baseline bool
Indicates that this revision has been successfully rolled out in this zone and new VMs will be assigned OS policies from this revision. For a given OS policy assignment, there is only one revision with a value of true for this field.
Deleted bool
Indicates that this revision deletes the OS policy assignment.
Id string
The provider-assigned unique ID for this managed resource.
Reconciling bool
Indicates that reconciliation is in progress for the revision. This value is true when the rollout_state is one of: * IN_PROGRESS * CANCELLING
RevisionCreateTime string
The timestamp that the revision was created.
RevisionId string
The assignment revision ID A new revision is committed whenever a rollout is triggered for a OS policy assignment
RolloutState string
OS policy assignment rollout state
Uid string
Server generated unique id for the OS policy assignment resource.
Baseline bool
Indicates that this revision has been successfully rolled out in this zone and new VMs will be assigned OS policies from this revision. For a given OS policy assignment, there is only one revision with a value of true for this field.
Deleted bool
Indicates that this revision deletes the OS policy assignment.
Id string
The provider-assigned unique ID for this managed resource.
Reconciling bool
Indicates that reconciliation is in progress for the revision. This value is true when the rollout_state is one of: * IN_PROGRESS * CANCELLING
RevisionCreateTime string
The timestamp that the revision was created.
RevisionId string
The assignment revision ID A new revision is committed whenever a rollout is triggered for a OS policy assignment
RolloutState string
OS policy assignment rollout state
Uid string
Server generated unique id for the OS policy assignment resource.
baseline Boolean
Indicates that this revision has been successfully rolled out in this zone and new VMs will be assigned OS policies from this revision. For a given OS policy assignment, there is only one revision with a value of true for this field.
deleted Boolean
Indicates that this revision deletes the OS policy assignment.
id String
The provider-assigned unique ID for this managed resource.
reconciling Boolean
Indicates that reconciliation is in progress for the revision. This value is true when the rollout_state is one of: * IN_PROGRESS * CANCELLING
revisionCreateTime String
The timestamp that the revision was created.
revisionId String
The assignment revision ID A new revision is committed whenever a rollout is triggered for a OS policy assignment
rolloutState String
OS policy assignment rollout state
uid String
Server generated unique id for the OS policy assignment resource.
baseline boolean
Indicates that this revision has been successfully rolled out in this zone and new VMs will be assigned OS policies from this revision. For a given OS policy assignment, there is only one revision with a value of true for this field.
deleted boolean
Indicates that this revision deletes the OS policy assignment.
id string
The provider-assigned unique ID for this managed resource.
reconciling boolean
Indicates that reconciliation is in progress for the revision. This value is true when the rollout_state is one of: * IN_PROGRESS * CANCELLING
revisionCreateTime string
The timestamp that the revision was created.
revisionId string
The assignment revision ID A new revision is committed whenever a rollout is triggered for a OS policy assignment
rolloutState string
OS policy assignment rollout state
uid string
Server generated unique id for the OS policy assignment resource.
baseline bool
Indicates that this revision has been successfully rolled out in this zone and new VMs will be assigned OS policies from this revision. For a given OS policy assignment, there is only one revision with a value of true for this field.
deleted bool
Indicates that this revision deletes the OS policy assignment.
id str
The provider-assigned unique ID for this managed resource.
reconciling bool
Indicates that reconciliation is in progress for the revision. This value is true when the rollout_state is one of: * IN_PROGRESS * CANCELLING
revision_create_time str
The timestamp that the revision was created.
revision_id str
The assignment revision ID A new revision is committed whenever a rollout is triggered for a OS policy assignment
rollout_state str
OS policy assignment rollout state
uid str
Server generated unique id for the OS policy assignment resource.
baseline Boolean
Indicates that this revision has been successfully rolled out in this zone and new VMs will be assigned OS policies from this revision. For a given OS policy assignment, there is only one revision with a value of true for this field.
deleted Boolean
Indicates that this revision deletes the OS policy assignment.
id String
The provider-assigned unique ID for this managed resource.
reconciling Boolean
Indicates that reconciliation is in progress for the revision. This value is true when the rollout_state is one of: * IN_PROGRESS * CANCELLING
revisionCreateTime String
The timestamp that the revision was created.
revisionId String
The assignment revision ID A new revision is committed whenever a rollout is triggered for a OS policy assignment
rolloutState String
OS policy assignment rollout state
uid String
Server generated unique id for the OS policy assignment resource.

Supporting Types

FixedOrPercent
, FixedOrPercentArgs

Fixed int
Specifies a fixed value.
Percent int
Specifies the relative value defined as a percentage, which will be multiplied by a reference value.
Fixed int
Specifies a fixed value.
Percent int
Specifies the relative value defined as a percentage, which will be multiplied by a reference value.
fixed Integer
Specifies a fixed value.
percent Integer
Specifies the relative value defined as a percentage, which will be multiplied by a reference value.
fixed number
Specifies a fixed value.
percent number
Specifies the relative value defined as a percentage, which will be multiplied by a reference value.
fixed int
Specifies a fixed value.
percent int
Specifies the relative value defined as a percentage, which will be multiplied by a reference value.
fixed Number
Specifies a fixed value.
percent Number
Specifies the relative value defined as a percentage, which will be multiplied by a reference value.

FixedOrPercentResponse
, FixedOrPercentResponseArgs

Fixed This property is required. int
Specifies a fixed value.
Percent This property is required. int
Specifies the relative value defined as a percentage, which will be multiplied by a reference value.
Fixed This property is required. int
Specifies a fixed value.
Percent This property is required. int
Specifies the relative value defined as a percentage, which will be multiplied by a reference value.
fixed This property is required. Integer
Specifies a fixed value.
percent This property is required. Integer
Specifies the relative value defined as a percentage, which will be multiplied by a reference value.
fixed This property is required. number
Specifies a fixed value.
percent This property is required. number
Specifies the relative value defined as a percentage, which will be multiplied by a reference value.
fixed This property is required. int
Specifies a fixed value.
percent This property is required. int
Specifies the relative value defined as a percentage, which will be multiplied by a reference value.
fixed This property is required. Number
Specifies a fixed value.
percent This property is required. Number
Specifies the relative value defined as a percentage, which will be multiplied by a reference value.

OSPolicy
, OSPolicyArgs

Id This property is required. string
The id of the OS policy with the following restrictions: * 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 assignment.
Mode This property is required. Pulumi.GoogleNative.OSConfig.V1Alpha.OSPolicyMode
Policy mode
ResourceGroups This property is required. List<Pulumi.GoogleNative.OSConfig.V1Alpha.Inputs.OSPolicyResourceGroup>
List of resource groups for the policy. For a particular VM, resource groups are evaluated in the order specified and the first resource group that is applicable is selected and the rest are ignored. If none of the resource groups are applicable for a VM, the VM is considered to be non-compliant w.r.t this policy. This behavior can be toggled by the flag allow_no_resource_group_match
AllowNoResourceGroupMatch bool
This flag determines the OS policy compliance status when none of the resource groups within the policy are applicable for a VM. Set this value to true if the policy needs to be reported as compliant even if the policy has nothing to validate or enforce.
Description string
Policy description. Length of the description is limited to 1024 characters.
Id This property is required. string
The id of the OS policy with the following restrictions: * 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 assignment.
Mode This property is required. OSPolicyMode
Policy mode
ResourceGroups This property is required. []OSPolicyResourceGroup
List of resource groups for the policy. For a particular VM, resource groups are evaluated in the order specified and the first resource group that is applicable is selected and the rest are ignored. If none of the resource groups are applicable for a VM, the VM is considered to be non-compliant w.r.t this policy. This behavior can be toggled by the flag allow_no_resource_group_match
AllowNoResourceGroupMatch bool
This flag determines the OS policy compliance status when none of the resource groups within the policy are applicable for a VM. Set this value to true if the policy needs to be reported as compliant even if the policy has nothing to validate or enforce.
Description string
Policy description. Length of the description is limited to 1024 characters.
id This property is required. String
The id of the OS policy with the following restrictions: * 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 assignment.
mode This property is required. OSPolicyMode
Policy mode
resourceGroups This property is required. List<OSPolicyResourceGroup>
List of resource groups for the policy. For a particular VM, resource groups are evaluated in the order specified and the first resource group that is applicable is selected and the rest are ignored. If none of the resource groups are applicable for a VM, the VM is considered to be non-compliant w.r.t this policy. This behavior can be toggled by the flag allow_no_resource_group_match
allowNoResourceGroupMatch Boolean
This flag determines the OS policy compliance status when none of the resource groups within the policy are applicable for a VM. Set this value to true if the policy needs to be reported as compliant even if the policy has nothing to validate or enforce.
description String
Policy description. Length of the description is limited to 1024 characters.
id This property is required. string
The id of the OS policy with the following restrictions: * 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 assignment.
mode This property is required. OSPolicyMode
Policy mode
resourceGroups This property is required. OSPolicyResourceGroup[]
List of resource groups for the policy. For a particular VM, resource groups are evaluated in the order specified and the first resource group that is applicable is selected and the rest are ignored. If none of the resource groups are applicable for a VM, the VM is considered to be non-compliant w.r.t this policy. This behavior can be toggled by the flag allow_no_resource_group_match
allowNoResourceGroupMatch boolean
This flag determines the OS policy compliance status when none of the resource groups within the policy are applicable for a VM. Set this value to true if the policy needs to be reported as compliant even if the policy has nothing to validate or enforce.
description string
Policy description. Length of the description is limited to 1024 characters.
id This property is required. str
The id of the OS policy with the following restrictions: * 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 assignment.
mode This property is required. OSPolicyMode
Policy mode
resource_groups This property is required. Sequence[OSPolicyResourceGroup]
List of resource groups for the policy. For a particular VM, resource groups are evaluated in the order specified and the first resource group that is applicable is selected and the rest are ignored. If none of the resource groups are applicable for a VM, the VM is considered to be non-compliant w.r.t this policy. This behavior can be toggled by the flag allow_no_resource_group_match
allow_no_resource_group_match bool
This flag determines the OS policy compliance status when none of the resource groups within the policy are applicable for a VM. Set this value to true if the policy needs to be reported as compliant even if the policy has nothing to validate or enforce.
description str
Policy description. Length of the description is limited to 1024 characters.
id This property is required. String
The id of the OS policy with the following restrictions: * 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 assignment.
mode This property is required. "MODE_UNSPECIFIED" | "VALIDATION" | "ENFORCEMENT"
Policy mode
resourceGroups This property is required. List<Property Map>
List of resource groups for the policy. For a particular VM, resource groups are evaluated in the order specified and the first resource group that is applicable is selected and the rest are ignored. If none of the resource groups are applicable for a VM, the VM is considered to be non-compliant w.r.t this policy. This behavior can be toggled by the flag allow_no_resource_group_match
allowNoResourceGroupMatch Boolean
This flag determines the OS policy compliance status when none of the resource groups within the policy are applicable for a VM. Set this value to true if the policy needs to be reported as compliant even if the policy has nothing to validate or enforce.
description String
Policy description. Length of the description is limited to 1024 characters.

OSPolicyAssignmentInstanceFilter
, OSPolicyAssignmentInstanceFilterArgs

All bool
Target all VMs in the project. If true, no other criteria is permitted.
ExclusionLabels List<Pulumi.GoogleNative.OSConfig.V1Alpha.Inputs.OSPolicyAssignmentLabelSet>
List of label sets used for VM exclusion. If the list has more than one label set, the VM is excluded if any of the label sets are applicable for the VM.
InclusionLabels List<Pulumi.GoogleNative.OSConfig.V1Alpha.Inputs.OSPolicyAssignmentLabelSet>
List of label sets used for VM inclusion. If the list has more than one LabelSet, the VM is included if any of the label sets are applicable for the VM.
Inventories List<Pulumi.GoogleNative.OSConfig.V1Alpha.Inputs.OSPolicyAssignmentInstanceFilterInventory>
List of inventories to select VMs. A VM is selected if its inventory data matches at least one of the following inventories.
OsShortNames List<string>
Deprecated. Use the inventories field instead. A VM is selected if it's OS short name matches with any of the values provided in this list.

Deprecated: Deprecated. Use the inventories field instead. A VM is selected if it's OS short name matches with any of the values provided in this list.

All bool
Target all VMs in the project. If true, no other criteria is permitted.
ExclusionLabels []OSPolicyAssignmentLabelSet
List of label sets used for VM exclusion. If the list has more than one label set, the VM is excluded if any of the label sets are applicable for the VM.
InclusionLabels []OSPolicyAssignmentLabelSet
List of label sets used for VM inclusion. If the list has more than one LabelSet, the VM is included if any of the label sets are applicable for the VM.
Inventories []OSPolicyAssignmentInstanceFilterInventory
List of inventories to select VMs. A VM is selected if its inventory data matches at least one of the following inventories.
OsShortNames []string
Deprecated. Use the inventories field instead. A VM is selected if it's OS short name matches with any of the values provided in this list.

Deprecated: Deprecated. Use the inventories field instead. A VM is selected if it's OS short name matches with any of the values provided in this list.

all Boolean
Target all VMs in the project. If true, no other criteria is permitted.
exclusionLabels List<OSPolicyAssignmentLabelSet>
List of label sets used for VM exclusion. If the list has more than one label set, the VM is excluded if any of the label sets are applicable for the VM.
inclusionLabels List<OSPolicyAssignmentLabelSet>
List of label sets used for VM inclusion. If the list has more than one LabelSet, the VM is included if any of the label sets are applicable for the VM.
inventories List<OSPolicyAssignmentInstanceFilterInventory>
List of inventories to select VMs. A VM is selected if its inventory data matches at least one of the following inventories.
osShortNames List<String>
Deprecated. Use the inventories field instead. A VM is selected if it's OS short name matches with any of the values provided in this list.

Deprecated: Deprecated. Use the inventories field instead. A VM is selected if it's OS short name matches with any of the values provided in this list.

all boolean
Target all VMs in the project. If true, no other criteria is permitted.
exclusionLabels OSPolicyAssignmentLabelSet[]
List of label sets used for VM exclusion. If the list has more than one label set, the VM is excluded if any of the label sets are applicable for the VM.
inclusionLabels OSPolicyAssignmentLabelSet[]
List of label sets used for VM inclusion. If the list has more than one LabelSet, the VM is included if any of the label sets are applicable for the VM.
inventories OSPolicyAssignmentInstanceFilterInventory[]
List of inventories to select VMs. A VM is selected if its inventory data matches at least one of the following inventories.
osShortNames string[]
Deprecated. Use the inventories field instead. A VM is selected if it's OS short name matches with any of the values provided in this list.

Deprecated: Deprecated. Use the inventories field instead. A VM is selected if it's OS short name matches with any of the values provided in this list.

all bool
Target all VMs in the project. If true, no other criteria is permitted.
exclusion_labels Sequence[OSPolicyAssignmentLabelSet]
List of label sets used for VM exclusion. If the list has more than one label set, the VM is excluded if any of the label sets are applicable for the VM.
inclusion_labels Sequence[OSPolicyAssignmentLabelSet]
List of label sets used for VM inclusion. If the list has more than one LabelSet, the VM is included if any of the label sets are applicable for the VM.
inventories Sequence[OSPolicyAssignmentInstanceFilterInventory]
List of inventories to select VMs. A VM is selected if its inventory data matches at least one of the following inventories.
os_short_names Sequence[str]
Deprecated. Use the inventories field instead. A VM is selected if it's OS short name matches with any of the values provided in this list.

Deprecated: Deprecated. Use the inventories field instead. A VM is selected if it's OS short name matches with any of the values provided in this list.

all Boolean
Target all VMs in the project. If true, no other criteria is permitted.
exclusionLabels List<Property Map>
List of label sets used for VM exclusion. If the list has more than one label set, the VM is excluded if any of the label sets are applicable for the VM.
inclusionLabels List<Property Map>
List of label sets used for VM inclusion. If the list has more than one LabelSet, the VM is included if any of the label sets are applicable for the VM.
inventories List<Property Map>
List of inventories to select VMs. A VM is selected if its inventory data matches at least one of the following inventories.
osShortNames List<String>
Deprecated. Use the inventories field instead. A VM is selected if it's OS short name matches with any of the values provided in this list.

Deprecated: Deprecated. Use the inventories field instead. A VM is selected if it's OS short name matches with any of the values provided in this list.

OSPolicyAssignmentInstanceFilterInventory
, OSPolicyAssignmentInstanceFilterInventoryArgs

OsShortName This property is required. string
The OS short name
OsVersion string
The OS version Prefix matches are supported if asterisk(*) is provided as the last character. For example, to match all versions with a major version of 7, specify the following value for this field 7.* An empty string matches all OS versions.
OsShortName This property is required. string
The OS short name
OsVersion string
The OS version Prefix matches are supported if asterisk(*) is provided as the last character. For example, to match all versions with a major version of 7, specify the following value for this field 7.* An empty string matches all OS versions.
osShortName This property is required. String
The OS short name
osVersion String
The OS version Prefix matches are supported if asterisk(*) is provided as the last character. For example, to match all versions with a major version of 7, specify the following value for this field 7.* An empty string matches all OS versions.
osShortName This property is required. string
The OS short name
osVersion string
The OS version Prefix matches are supported if asterisk(*) is provided as the last character. For example, to match all versions with a major version of 7, specify the following value for this field 7.* An empty string matches all OS versions.
os_short_name This property is required. str
The OS short name
os_version str
The OS version Prefix matches are supported if asterisk(*) is provided as the last character. For example, to match all versions with a major version of 7, specify the following value for this field 7.* An empty string matches all OS versions.
osShortName This property is required. String
The OS short name
osVersion String
The OS version Prefix matches are supported if asterisk(*) is provided as the last character. For example, to match all versions with a major version of 7, specify the following value for this field 7.* An empty string matches all OS versions.

OSPolicyAssignmentInstanceFilterInventoryResponse
, OSPolicyAssignmentInstanceFilterInventoryResponseArgs

OsShortName This property is required. string
The OS short name
OsVersion This property is required. string
The OS version Prefix matches are supported if asterisk(*) is provided as the last character. For example, to match all versions with a major version of 7, specify the following value for this field 7.* An empty string matches all OS versions.
OsShortName This property is required. string
The OS short name
OsVersion This property is required. string
The OS version Prefix matches are supported if asterisk(*) is provided as the last character. For example, to match all versions with a major version of 7, specify the following value for this field 7.* An empty string matches all OS versions.
osShortName This property is required. String
The OS short name
osVersion This property is required. String
The OS version Prefix matches are supported if asterisk(*) is provided as the last character. For example, to match all versions with a major version of 7, specify the following value for this field 7.* An empty string matches all OS versions.
osShortName This property is required. string
The OS short name
osVersion This property is required. string
The OS version Prefix matches are supported if asterisk(*) is provided as the last character. For example, to match all versions with a major version of 7, specify the following value for this field 7.* An empty string matches all OS versions.
os_short_name This property is required. str
The OS short name
os_version This property is required. str
The OS version Prefix matches are supported if asterisk(*) is provided as the last character. For example, to match all versions with a major version of 7, specify the following value for this field 7.* An empty string matches all OS versions.
osShortName This property is required. String
The OS short name
osVersion This property is required. String
The OS version Prefix matches are supported if asterisk(*) is provided as the last character. For example, to match all versions with a major version of 7, specify the following value for this field 7.* An empty string matches all OS versions.

OSPolicyAssignmentInstanceFilterResponse
, OSPolicyAssignmentInstanceFilterResponseArgs

All This property is required. bool
Target all VMs in the project. If true, no other criteria is permitted.
ExclusionLabels This property is required. List<Pulumi.GoogleNative.OSConfig.V1Alpha.Inputs.OSPolicyAssignmentLabelSetResponse>
List of label sets used for VM exclusion. If the list has more than one label set, the VM is excluded if any of the label sets are applicable for the VM.
InclusionLabels This property is required. List<Pulumi.GoogleNative.OSConfig.V1Alpha.Inputs.OSPolicyAssignmentLabelSetResponse>
List of label sets used for VM inclusion. If the list has more than one LabelSet, the VM is included if any of the label sets are applicable for the VM.
Inventories This property is required. List<Pulumi.GoogleNative.OSConfig.V1Alpha.Inputs.OSPolicyAssignmentInstanceFilterInventoryResponse>
List of inventories to select VMs. A VM is selected if its inventory data matches at least one of the following inventories.
OsShortNames This property is required. List<string>
Deprecated. Use the inventories field instead. A VM is selected if it's OS short name matches with any of the values provided in this list.

Deprecated: Deprecated. Use the inventories field instead. A VM is selected if it's OS short name matches with any of the values provided in this list.

All This property is required. bool
Target all VMs in the project. If true, no other criteria is permitted.
ExclusionLabels This property is required. []OSPolicyAssignmentLabelSetResponse
List of label sets used for VM exclusion. If the list has more than one label set, the VM is excluded if any of the label sets are applicable for the VM.
InclusionLabels This property is required. []OSPolicyAssignmentLabelSetResponse
List of label sets used for VM inclusion. If the list has more than one LabelSet, the VM is included if any of the label sets are applicable for the VM.
Inventories This property is required. []OSPolicyAssignmentInstanceFilterInventoryResponse
List of inventories to select VMs. A VM is selected if its inventory data matches at least one of the following inventories.
OsShortNames This property is required. []string
Deprecated. Use the inventories field instead. A VM is selected if it's OS short name matches with any of the values provided in this list.

Deprecated: Deprecated. Use the inventories field instead. A VM is selected if it's OS short name matches with any of the values provided in this list.

all This property is required. Boolean
Target all VMs in the project. If true, no other criteria is permitted.
exclusionLabels This property is required. List<OSPolicyAssignmentLabelSetResponse>
List of label sets used for VM exclusion. If the list has more than one label set, the VM is excluded if any of the label sets are applicable for the VM.
inclusionLabels This property is required. List<OSPolicyAssignmentLabelSetResponse>
List of label sets used for VM inclusion. If the list has more than one LabelSet, the VM is included if any of the label sets are applicable for the VM.
inventories This property is required. List<OSPolicyAssignmentInstanceFilterInventoryResponse>
List of inventories to select VMs. A VM is selected if its inventory data matches at least one of the following inventories.
osShortNames This property is required. List<String>
Deprecated. Use the inventories field instead. A VM is selected if it's OS short name matches with any of the values provided in this list.

Deprecated: Deprecated. Use the inventories field instead. A VM is selected if it's OS short name matches with any of the values provided in this list.

all This property is required. boolean
Target all VMs in the project. If true, no other criteria is permitted.
exclusionLabels This property is required. OSPolicyAssignmentLabelSetResponse[]
List of label sets used for VM exclusion. If the list has more than one label set, the VM is excluded if any of the label sets are applicable for the VM.
inclusionLabels This property is required. OSPolicyAssignmentLabelSetResponse[]
List of label sets used for VM inclusion. If the list has more than one LabelSet, the VM is included if any of the label sets are applicable for the VM.
inventories This property is required. OSPolicyAssignmentInstanceFilterInventoryResponse[]
List of inventories to select VMs. A VM is selected if its inventory data matches at least one of the following inventories.
osShortNames This property is required. string[]
Deprecated. Use the inventories field instead. A VM is selected if it's OS short name matches with any of the values provided in this list.

Deprecated: Deprecated. Use the inventories field instead. A VM is selected if it's OS short name matches with any of the values provided in this list.

all This property is required. bool
Target all VMs in the project. If true, no other criteria is permitted.
exclusion_labels This property is required. Sequence[OSPolicyAssignmentLabelSetResponse]
List of label sets used for VM exclusion. If the list has more than one label set, the VM is excluded if any of the label sets are applicable for the VM.
inclusion_labels This property is required. Sequence[OSPolicyAssignmentLabelSetResponse]
List of label sets used for VM inclusion. If the list has more than one LabelSet, the VM is included if any of the label sets are applicable for the VM.
inventories This property is required. Sequence[OSPolicyAssignmentInstanceFilterInventoryResponse]
List of inventories to select VMs. A VM is selected if its inventory data matches at least one of the following inventories.
os_short_names This property is required. Sequence[str]
Deprecated. Use the inventories field instead. A VM is selected if it's OS short name matches with any of the values provided in this list.

Deprecated: Deprecated. Use the inventories field instead. A VM is selected if it's OS short name matches with any of the values provided in this list.

all This property is required. Boolean
Target all VMs in the project. If true, no other criteria is permitted.
exclusionLabels This property is required. List<Property Map>
List of label sets used for VM exclusion. If the list has more than one label set, the VM is excluded if any of the label sets are applicable for the VM.
inclusionLabels This property is required. List<Property Map>
List of label sets used for VM inclusion. If the list has more than one LabelSet, the VM is included if any of the label sets are applicable for the VM.
inventories This property is required. List<Property Map>
List of inventories to select VMs. A VM is selected if its inventory data matches at least one of the following inventories.
osShortNames This property is required. List<String>
Deprecated. Use the inventories field instead. A VM is selected if it's OS short name matches with any of the values provided in this list.

Deprecated: Deprecated. Use the inventories field instead. A VM is selected if it's OS short name matches with any of the values provided in this list.

OSPolicyAssignmentLabelSet
, OSPolicyAssignmentLabelSetArgs

Labels Dictionary<string, string>
Labels are identified by key/value pairs in this map. A VM should contain all the key/value pairs specified in this map to be selected.
Labels map[string]string
Labels are identified by key/value pairs in this map. A VM should contain all the key/value pairs specified in this map to be selected.
labels Map<String,String>
Labels are identified by key/value pairs in this map. A VM should contain all the key/value pairs specified in this map to be selected.
labels {[key: string]: string}
Labels are identified by key/value pairs in this map. A VM should contain all the key/value pairs specified in this map to be selected.
labels Mapping[str, str]
Labels are identified by key/value pairs in this map. A VM should contain all the key/value pairs specified in this map to be selected.
labels Map<String>
Labels are identified by key/value pairs in this map. A VM should contain all the key/value pairs specified in this map to be selected.

OSPolicyAssignmentLabelSetResponse
, OSPolicyAssignmentLabelSetResponseArgs

Labels This property is required. Dictionary<string, string>
Labels are identified by key/value pairs in this map. A VM should contain all the key/value pairs specified in this map to be selected.
Labels This property is required. map[string]string
Labels are identified by key/value pairs in this map. A VM should contain all the key/value pairs specified in this map to be selected.
labels This property is required. Map<String,String>
Labels are identified by key/value pairs in this map. A VM should contain all the key/value pairs specified in this map to be selected.
labels This property is required. {[key: string]: string}
Labels are identified by key/value pairs in this map. A VM should contain all the key/value pairs specified in this map to be selected.
labels This property is required. Mapping[str, str]
Labels are identified by key/value pairs in this map. A VM should contain all the key/value pairs specified in this map to be selected.
labels This property is required. Map<String>
Labels are identified by key/value pairs in this map. A VM should contain all the key/value pairs specified in this map to be selected.

OSPolicyAssignmentRollout
, OSPolicyAssignmentRolloutArgs

DisruptionBudget This property is required. Pulumi.GoogleNative.OSConfig.V1Alpha.Inputs.FixedOrPercent
The maximum number (or percentage) of VMs per zone to disrupt at any given moment.
MinWaitDuration This property is required. string
This determines the minimum duration of time to wait after the configuration changes are applied through the current rollout. A VM continues to count towards the disruption_budget at least until this duration of time has passed after configuration changes are applied.
DisruptionBudget This property is required. FixedOrPercent
The maximum number (or percentage) of VMs per zone to disrupt at any given moment.
MinWaitDuration This property is required. string
This determines the minimum duration of time to wait after the configuration changes are applied through the current rollout. A VM continues to count towards the disruption_budget at least until this duration of time has passed after configuration changes are applied.
disruptionBudget This property is required. FixedOrPercent
The maximum number (or percentage) of VMs per zone to disrupt at any given moment.
minWaitDuration This property is required. String
This determines the minimum duration of time to wait after the configuration changes are applied through the current rollout. A VM continues to count towards the disruption_budget at least until this duration of time has passed after configuration changes are applied.
disruptionBudget This property is required. FixedOrPercent
The maximum number (or percentage) of VMs per zone to disrupt at any given moment.
minWaitDuration This property is required. string
This determines the minimum duration of time to wait after the configuration changes are applied through the current rollout. A VM continues to count towards the disruption_budget at least until this duration of time has passed after configuration changes are applied.
disruption_budget This property is required. FixedOrPercent
The maximum number (or percentage) of VMs per zone to disrupt at any given moment.
min_wait_duration This property is required. str
This determines the minimum duration of time to wait after the configuration changes are applied through the current rollout. A VM continues to count towards the disruption_budget at least until this duration of time has passed after configuration changes are applied.
disruptionBudget This property is required. Property Map
The maximum number (or percentage) of VMs per zone to disrupt at any given moment.
minWaitDuration This property is required. String
This determines the minimum duration of time to wait after the configuration changes are applied through the current rollout. A VM continues to count towards the disruption_budget at least until this duration of time has passed after configuration changes are applied.

OSPolicyAssignmentRolloutResponse
, OSPolicyAssignmentRolloutResponseArgs

DisruptionBudget This property is required. Pulumi.GoogleNative.OSConfig.V1Alpha.Inputs.FixedOrPercentResponse
The maximum number (or percentage) of VMs per zone to disrupt at any given moment.
MinWaitDuration This property is required. string
This determines the minimum duration of time to wait after the configuration changes are applied through the current rollout. A VM continues to count towards the disruption_budget at least until this duration of time has passed after configuration changes are applied.
DisruptionBudget This property is required. FixedOrPercentResponse
The maximum number (or percentage) of VMs per zone to disrupt at any given moment.
MinWaitDuration This property is required. string
This determines the minimum duration of time to wait after the configuration changes are applied through the current rollout. A VM continues to count towards the disruption_budget at least until this duration of time has passed after configuration changes are applied.
disruptionBudget This property is required. FixedOrPercentResponse
The maximum number (or percentage) of VMs per zone to disrupt at any given moment.
minWaitDuration This property is required. String
This determines the minimum duration of time to wait after the configuration changes are applied through the current rollout. A VM continues to count towards the disruption_budget at least until this duration of time has passed after configuration changes are applied.
disruptionBudget This property is required. FixedOrPercentResponse
The maximum number (or percentage) of VMs per zone to disrupt at any given moment.
minWaitDuration This property is required. string
This determines the minimum duration of time to wait after the configuration changes are applied through the current rollout. A VM continues to count towards the disruption_budget at least until this duration of time has passed after configuration changes are applied.
disruption_budget This property is required. FixedOrPercentResponse
The maximum number (or percentage) of VMs per zone to disrupt at any given moment.
min_wait_duration This property is required. str
This determines the minimum duration of time to wait after the configuration changes are applied through the current rollout. A VM continues to count towards the disruption_budget at least until this duration of time has passed after configuration changes are applied.
disruptionBudget This property is required. Property Map
The maximum number (or percentage) of VMs per zone to disrupt at any given moment.
minWaitDuration This property is required. String
This determines the minimum duration of time to wait after the configuration changes are applied through the current rollout. A VM continues to count towards the disruption_budget at least until this duration of time has passed after configuration changes are applied.

OSPolicyInventoryFilter
, OSPolicyInventoryFilterArgs

OsShortName This property is required. string
The OS short name
OsVersion string
The OS version Prefix matches are supported if asterisk(*) is provided as the last character. For example, to match all versions with a major version of 7, specify the following value for this field 7.* An empty string matches all OS versions.
OsShortName This property is required. string
The OS short name
OsVersion string
The OS version Prefix matches are supported if asterisk(*) is provided as the last character. For example, to match all versions with a major version of 7, specify the following value for this field 7.* An empty string matches all OS versions.
osShortName This property is required. String
The OS short name
osVersion String
The OS version Prefix matches are supported if asterisk(*) is provided as the last character. For example, to match all versions with a major version of 7, specify the following value for this field 7.* An empty string matches all OS versions.
osShortName This property is required. string
The OS short name
osVersion string
The OS version Prefix matches are supported if asterisk(*) is provided as the last character. For example, to match all versions with a major version of 7, specify the following value for this field 7.* An empty string matches all OS versions.
os_short_name This property is required. str
The OS short name
os_version str
The OS version Prefix matches are supported if asterisk(*) is provided as the last character. For example, to match all versions with a major version of 7, specify the following value for this field 7.* An empty string matches all OS versions.
osShortName This property is required. String
The OS short name
osVersion String
The OS version Prefix matches are supported if asterisk(*) is provided as the last character. For example, to match all versions with a major version of 7, specify the following value for this field 7.* An empty string matches all OS versions.

OSPolicyInventoryFilterResponse
, OSPolicyInventoryFilterResponseArgs

OsShortName This property is required. string
The OS short name
OsVersion This property is required. string
The OS version Prefix matches are supported if asterisk(*) is provided as the last character. For example, to match all versions with a major version of 7, specify the following value for this field 7.* An empty string matches all OS versions.
OsShortName This property is required. string
The OS short name
OsVersion This property is required. string
The OS version Prefix matches are supported if asterisk(*) is provided as the last character. For example, to match all versions with a major version of 7, specify the following value for this field 7.* An empty string matches all OS versions.
osShortName This property is required. String
The OS short name
osVersion This property is required. String
The OS version Prefix matches are supported if asterisk(*) is provided as the last character. For example, to match all versions with a major version of 7, specify the following value for this field 7.* An empty string matches all OS versions.
osShortName This property is required. string
The OS short name
osVersion This property is required. string
The OS version Prefix matches are supported if asterisk(*) is provided as the last character. For example, to match all versions with a major version of 7, specify the following value for this field 7.* An empty string matches all OS versions.
os_short_name This property is required. str
The OS short name
os_version This property is required. str
The OS version Prefix matches are supported if asterisk(*) is provided as the last character. For example, to match all versions with a major version of 7, specify the following value for this field 7.* An empty string matches all OS versions.
osShortName This property is required. String
The OS short name
osVersion This property is required. String
The OS version Prefix matches are supported if asterisk(*) is provided as the last character. For example, to match all versions with a major version of 7, specify the following value for this field 7.* An empty string matches all OS versions.

OSPolicyMode
, OSPolicyModeArgs

ModeUnspecified
MODE_UNSPECIFIEDInvalid mode
Validation
VALIDATIONThis mode checks if the configuration resources in the policy are in their desired state. No actions are performed if they are not in the desired state. This mode is used for reporting purposes.
Enforcement
ENFORCEMENTThis mode checks if the configuration resources in the policy are in their desired state, and if not, enforces the desired state.
OSPolicyModeModeUnspecified
MODE_UNSPECIFIEDInvalid mode
OSPolicyModeValidation
VALIDATIONThis mode checks if the configuration resources in the policy are in their desired state. No actions are performed if they are not in the desired state. This mode is used for reporting purposes.
OSPolicyModeEnforcement
ENFORCEMENTThis mode checks if the configuration resources in the policy are in their desired state, and if not, enforces the desired state.
ModeUnspecified
MODE_UNSPECIFIEDInvalid mode
Validation
VALIDATIONThis mode checks if the configuration resources in the policy are in their desired state. No actions are performed if they are not in the desired state. This mode is used for reporting purposes.
Enforcement
ENFORCEMENTThis mode checks if the configuration resources in the policy are in their desired state, and if not, enforces the desired state.
ModeUnspecified
MODE_UNSPECIFIEDInvalid mode
Validation
VALIDATIONThis mode checks if the configuration resources in the policy are in their desired state. No actions are performed if they are not in the desired state. This mode is used for reporting purposes.
Enforcement
ENFORCEMENTThis mode checks if the configuration resources in the policy are in their desired state, and if not, enforces the desired state.
MODE_UNSPECIFIED
MODE_UNSPECIFIEDInvalid mode
VALIDATION
VALIDATIONThis mode checks if the configuration resources in the policy are in their desired state. No actions are performed if they are not in the desired state. This mode is used for reporting purposes.
ENFORCEMENT
ENFORCEMENTThis mode checks if the configuration resources in the policy are in their desired state, and if not, enforces the desired state.
"MODE_UNSPECIFIED"
MODE_UNSPECIFIEDInvalid mode
"VALIDATION"
VALIDATIONThis mode checks if the configuration resources in the policy are in their desired state. No actions are performed if they are not in the desired state. This mode is used for reporting purposes.
"ENFORCEMENT"
ENFORCEMENTThis mode checks if the configuration resources in the policy are in their desired state, and if not, enforces the desired state.

OSPolicyOSFilter
, OSPolicyOSFilterArgs

OsShortName string
This should match OS short name emitted by the OS inventory agent. An empty value matches any OS.
OsVersion string
This value should match the version emitted by the OS inventory agent. Prefix matches are supported if asterisk(*) is provided as the last character. For example, to match all versions with a major version of 7, specify the following value for this field 7.*
OsShortName string
This should match OS short name emitted by the OS inventory agent. An empty value matches any OS.
OsVersion string
This value should match the version emitted by the OS inventory agent. Prefix matches are supported if asterisk(*) is provided as the last character. For example, to match all versions with a major version of 7, specify the following value for this field 7.*
osShortName String
This should match OS short name emitted by the OS inventory agent. An empty value matches any OS.
osVersion String
This value should match the version emitted by the OS inventory agent. Prefix matches are supported if asterisk(*) is provided as the last character. For example, to match all versions with a major version of 7, specify the following value for this field 7.*
osShortName string
This should match OS short name emitted by the OS inventory agent. An empty value matches any OS.
osVersion string
This value should match the version emitted by the OS inventory agent. Prefix matches are supported if asterisk(*) is provided as the last character. For example, to match all versions with a major version of 7, specify the following value for this field 7.*
os_short_name str
This should match OS short name emitted by the OS inventory agent. An empty value matches any OS.
os_version str
This value should match the version emitted by the OS inventory agent. Prefix matches are supported if asterisk(*) is provided as the last character. For example, to match all versions with a major version of 7, specify the following value for this field 7.*
osShortName String
This should match OS short name emitted by the OS inventory agent. An empty value matches any OS.
osVersion String
This value should match the version emitted by the OS inventory agent. Prefix matches are supported if asterisk(*) is provided as the last character. For example, to match all versions with a major version of 7, specify the following value for this field 7.*

OSPolicyOSFilterResponse
, OSPolicyOSFilterResponseArgs

OsShortName This property is required. string
This should match OS short name emitted by the OS inventory agent. An empty value matches any OS.
OsVersion This property is required. string
This value should match the version emitted by the OS inventory agent. Prefix matches are supported if asterisk(*) is provided as the last character. For example, to match all versions with a major version of 7, specify the following value for this field 7.*
OsShortName This property is required. string
This should match OS short name emitted by the OS inventory agent. An empty value matches any OS.
OsVersion This property is required. string
This value should match the version emitted by the OS inventory agent. Prefix matches are supported if asterisk(*) is provided as the last character. For example, to match all versions with a major version of 7, specify the following value for this field 7.*
osShortName This property is required. String
This should match OS short name emitted by the OS inventory agent. An empty value matches any OS.
osVersion This property is required. String
This value should match the version emitted by the OS inventory agent. Prefix matches are supported if asterisk(*) is provided as the last character. For example, to match all versions with a major version of 7, specify the following value for this field 7.*
osShortName This property is required. string
This should match OS short name emitted by the OS inventory agent. An empty value matches any OS.
osVersion This property is required. string
This value should match the version emitted by the OS inventory agent. Prefix matches are supported if asterisk(*) is provided as the last character. For example, to match all versions with a major version of 7, specify the following value for this field 7.*
os_short_name This property is required. str
This should match OS short name emitted by the OS inventory agent. An empty value matches any OS.
os_version This property is required. str
This value should match the version emitted by the OS inventory agent. Prefix matches are supported if asterisk(*) is provided as the last character. For example, to match all versions with a major version of 7, specify the following value for this field 7.*
osShortName This property is required. String
This should match OS short name emitted by the OS inventory agent. An empty value matches any OS.
osVersion This property is required. String
This value should match the version emitted by the OS inventory agent. Prefix matches are supported if asterisk(*) is provided as the last character. For example, to match all versions with a major version of 7, specify the following value for this field 7.*

OSPolicyResource
, OSPolicyResourceArgs

Id This property is required. string
The id of the resource with the following restrictions: * 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 OS policy.
Exec Pulumi.GoogleNative.OSConfig.V1Alpha.Inputs.OSPolicyResourceExecResource
Exec resource
File Pulumi.GoogleNative.OSConfig.V1Alpha.Inputs.OSPolicyResourceFileResource
File resource
Pkg Pulumi.GoogleNative.OSConfig.V1Alpha.Inputs.OSPolicyResourcePackageResource
Package resource
Repository Pulumi.GoogleNative.OSConfig.V1Alpha.Inputs.OSPolicyResourceRepositoryResource
Package repository resource
Id This property is required. string
The id of the resource with the following restrictions: * 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 OS policy.
Exec OSPolicyResourceExecResource
Exec resource
File OSPolicyResourceFileResource
File resource
Pkg OSPolicyResourcePackageResource
Package resource
Repository OSPolicyResourceRepositoryResource
Package repository resource
id This property is required. String
The id of the resource with the following restrictions: * 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 OS policy.
exec OSPolicyResourceExecResource
Exec resource
file OSPolicyResourceFileResource
File resource
pkg OSPolicyResourcePackageResource
Package resource
repository OSPolicyResourceRepositoryResource
Package repository resource
id This property is required. string
The id of the resource with the following restrictions: * 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 OS policy.
exec OSPolicyResourceExecResource
Exec resource
file OSPolicyResourceFileResource
File resource
pkg OSPolicyResourcePackageResource
Package resource
repository OSPolicyResourceRepositoryResource
Package repository resource
id This property is required. str
The id of the resource with the following restrictions: * 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 OS policy.
exec_ OSPolicyResourceExecResource
Exec resource
file OSPolicyResourceFileResource
File resource
pkg OSPolicyResourcePackageResource
Package resource
repository OSPolicyResourceRepositoryResource
Package repository resource
id This property is required. String
The id of the resource with the following restrictions: * 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 OS policy.
exec Property Map
Exec resource
file Property Map
File resource
pkg Property Map
Package resource
repository Property Map
Package repository resource

OSPolicyResourceExecResource
, OSPolicyResourceExecResourceArgs

Validate This property is required. Pulumi.GoogleNative.OSConfig.V1Alpha.Inputs.OSPolicyResourceExecResourceExec
What to run to validate this resource is in the desired state. An exit code of 100 indicates "in desired state", and exit code of 101 indicates "not in desired state". Any other exit code indicates a failure running validate.
Enforce Pulumi.GoogleNative.OSConfig.V1Alpha.Inputs.OSPolicyResourceExecResourceExec
What to run to bring this resource into the desired state. An exit code of 100 indicates "success", any other exit code indicates a failure running enforce.
Validate This property is required. OSPolicyResourceExecResourceExec
What to run to validate this resource is in the desired state. An exit code of 100 indicates "in desired state", and exit code of 101 indicates "not in desired state". Any other exit code indicates a failure running validate.
Enforce OSPolicyResourceExecResourceExec
What to run to bring this resource into the desired state. An exit code of 100 indicates "success", any other exit code indicates a failure running enforce.
validate This property is required. OSPolicyResourceExecResourceExec
What to run to validate this resource is in the desired state. An exit code of 100 indicates "in desired state", and exit code of 101 indicates "not in desired state". Any other exit code indicates a failure running validate.
enforce OSPolicyResourceExecResourceExec
What to run to bring this resource into the desired state. An exit code of 100 indicates "success", any other exit code indicates a failure running enforce.
validate This property is required. OSPolicyResourceExecResourceExec
What to run to validate this resource is in the desired state. An exit code of 100 indicates "in desired state", and exit code of 101 indicates "not in desired state". Any other exit code indicates a failure running validate.
enforce OSPolicyResourceExecResourceExec
What to run to bring this resource into the desired state. An exit code of 100 indicates "success", any other exit code indicates a failure running enforce.
validate This property is required. OSPolicyResourceExecResourceExec
What to run to validate this resource is in the desired state. An exit code of 100 indicates "in desired state", and exit code of 101 indicates "not in desired state". Any other exit code indicates a failure running validate.
enforce OSPolicyResourceExecResourceExec
What to run to bring this resource into the desired state. An exit code of 100 indicates "success", any other exit code indicates a failure running enforce.
validate This property is required. Property Map
What to run to validate this resource is in the desired state. An exit code of 100 indicates "in desired state", and exit code of 101 indicates "not in desired state". Any other exit code indicates a failure running validate.
enforce Property Map
What to run to bring this resource into the desired state. An exit code of 100 indicates "success", any other exit code indicates a failure running enforce.

OSPolicyResourceExecResourceExec
, OSPolicyResourceExecResourceExecArgs

Interpreter This property is required. Pulumi.GoogleNative.OSConfig.V1Alpha.OSPolicyResourceExecResourceExecInterpreter
The script interpreter to use.
Args List<string>
Optional arguments to pass to the source during execution.
File Pulumi.GoogleNative.OSConfig.V1Alpha.Inputs.OSPolicyResourceFile
A remote or local file.
OutputFilePath string
Only recorded for enforce Exec. Path to an output file (that is created by this Exec) whose content will be recorded in OSPolicyResourceCompliance after a successful run. Absence or failure to read this file will result in this ExecResource being non-compliant. Output file size is limited to 100K bytes.
Script string
An inline script. The size of the script is limited to 32KiB.
Interpreter This property is required. OSPolicyResourceExecResourceExecInterpreter
The script interpreter to use.
Args []string
Optional arguments to pass to the source during execution.
File OSPolicyResourceFile
A remote or local file.
OutputFilePath string
Only recorded for enforce Exec. Path to an output file (that is created by this Exec) whose content will be recorded in OSPolicyResourceCompliance after a successful run. Absence or failure to read this file will result in this ExecResource being non-compliant. Output file size is limited to 100K bytes.
Script string
An inline script. The size of the script is limited to 32KiB.
interpreter This property is required. OSPolicyResourceExecResourceExecInterpreter
The script interpreter to use.
args List<String>
Optional arguments to pass to the source during execution.
file OSPolicyResourceFile
A remote or local file.
outputFilePath String
Only recorded for enforce Exec. Path to an output file (that is created by this Exec) whose content will be recorded in OSPolicyResourceCompliance after a successful run. Absence or failure to read this file will result in this ExecResource being non-compliant. Output file size is limited to 100K bytes.
script String
An inline script. The size of the script is limited to 32KiB.
interpreter This property is required. OSPolicyResourceExecResourceExecInterpreter
The script interpreter to use.
args string[]
Optional arguments to pass to the source during execution.
file OSPolicyResourceFile
A remote or local file.
outputFilePath string
Only recorded for enforce Exec. Path to an output file (that is created by this Exec) whose content will be recorded in OSPolicyResourceCompliance after a successful run. Absence or failure to read this file will result in this ExecResource being non-compliant. Output file size is limited to 100K bytes.
script string
An inline script. The size of the script is limited to 32KiB.
interpreter This property is required. OSPolicyResourceExecResourceExecInterpreter
The script interpreter to use.
args Sequence[str]
Optional arguments to pass to the source during execution.
file OSPolicyResourceFile
A remote or local file.
output_file_path str
Only recorded for enforce Exec. Path to an output file (that is created by this Exec) whose content will be recorded in OSPolicyResourceCompliance after a successful run. Absence or failure to read this file will result in this ExecResource being non-compliant. Output file size is limited to 100K bytes.
script str
An inline script. The size of the script is limited to 32KiB.
interpreter This property is required. "INTERPRETER_UNSPECIFIED" | "NONE" | "SHELL" | "POWERSHELL"
The script interpreter to use.
args List<String>
Optional arguments to pass to the source during execution.
file Property Map
A remote or local file.
outputFilePath String
Only recorded for enforce Exec. Path to an output file (that is created by this Exec) whose content will be recorded in OSPolicyResourceCompliance after a successful run. Absence or failure to read this file will result in this ExecResource being non-compliant. Output file size is limited to 100K bytes.
script String
An inline script. The size of the script is limited to 32KiB.

OSPolicyResourceExecResourceExecInterpreter
, OSPolicyResourceExecResourceExecInterpreterArgs

InterpreterUnspecified
INTERPRETER_UNSPECIFIEDInvalid value, the request will return validation error.
None
NONEIf an interpreter is not specified, the source is executed directly. This execution, without an interpreter, only succeeds for executables and scripts that have shebang lines.
Shell
SHELLIndicates that the script runs with /bin/sh on Linux and cmd.exe on Windows.
Powershell
POWERSHELLIndicates that the script runs with PowerShell.
OSPolicyResourceExecResourceExecInterpreterInterpreterUnspecified
INTERPRETER_UNSPECIFIEDInvalid value, the request will return validation error.
OSPolicyResourceExecResourceExecInterpreterNone
NONEIf an interpreter is not specified, the source is executed directly. This execution, without an interpreter, only succeeds for executables and scripts that have shebang lines.
OSPolicyResourceExecResourceExecInterpreterShell
SHELLIndicates that the script runs with /bin/sh on Linux and cmd.exe on Windows.
OSPolicyResourceExecResourceExecInterpreterPowershell
POWERSHELLIndicates that the script runs with PowerShell.
InterpreterUnspecified
INTERPRETER_UNSPECIFIEDInvalid value, the request will return validation error.
None
NONEIf an interpreter is not specified, the source is executed directly. This execution, without an interpreter, only succeeds for executables and scripts that have shebang lines.
Shell
SHELLIndicates that the script runs with /bin/sh on Linux and cmd.exe on Windows.
Powershell
POWERSHELLIndicates that the script runs with PowerShell.
InterpreterUnspecified
INTERPRETER_UNSPECIFIEDInvalid value, the request will return validation error.
None
NONEIf an interpreter is not specified, the source is executed directly. This execution, without an interpreter, only succeeds for executables and scripts that have shebang lines.
Shell
SHELLIndicates that the script runs with /bin/sh on Linux and cmd.exe on Windows.
Powershell
POWERSHELLIndicates that the script runs with PowerShell.
INTERPRETER_UNSPECIFIED
INTERPRETER_UNSPECIFIEDInvalid value, the request will return validation error.
NONE
NONEIf an interpreter is not specified, the source is executed directly. This execution, without an interpreter, only succeeds for executables and scripts that have shebang lines.
SHELL
SHELLIndicates that the script runs with /bin/sh on Linux and cmd.exe on Windows.
POWERSHELL
POWERSHELLIndicates that the script runs with PowerShell.
"INTERPRETER_UNSPECIFIED"
INTERPRETER_UNSPECIFIEDInvalid value, the request will return validation error.
"NONE"
NONEIf an interpreter is not specified, the source is executed directly. This execution, without an interpreter, only succeeds for executables and scripts that have shebang lines.
"SHELL"
SHELLIndicates that the script runs with /bin/sh on Linux and cmd.exe on Windows.
"POWERSHELL"
POWERSHELLIndicates that the script runs with PowerShell.

OSPolicyResourceExecResourceExecResponse
, OSPolicyResourceExecResourceExecResponseArgs

Args This property is required. List<string>
Optional arguments to pass to the source during execution.
File This property is required. Pulumi.GoogleNative.OSConfig.V1Alpha.Inputs.OSPolicyResourceFileResponse
A remote or local file.
Interpreter This property is required. string
The script interpreter to use.
OutputFilePath This property is required. string
Only recorded for enforce Exec. Path to an output file (that is created by this Exec) whose content will be recorded in OSPolicyResourceCompliance after a successful run. Absence or failure to read this file will result in this ExecResource being non-compliant. Output file size is limited to 100K bytes.
Script This property is required. string
An inline script. The size of the script is limited to 32KiB.
Args This property is required. []string
Optional arguments to pass to the source during execution.
File This property is required. OSPolicyResourceFileResponse
A remote or local file.
Interpreter This property is required. string
The script interpreter to use.
OutputFilePath This property is required. string
Only recorded for enforce Exec. Path to an output file (that is created by this Exec) whose content will be recorded in OSPolicyResourceCompliance after a successful run. Absence or failure to read this file will result in this ExecResource being non-compliant. Output file size is limited to 100K bytes.
Script This property is required. string
An inline script. The size of the script is limited to 32KiB.
args This property is required. List<String>
Optional arguments to pass to the source during execution.
file This property is required. OSPolicyResourceFileResponse
A remote or local file.
interpreter This property is required. String
The script interpreter to use.
outputFilePath This property is required. String
Only recorded for enforce Exec. Path to an output file (that is created by this Exec) whose content will be recorded in OSPolicyResourceCompliance after a successful run. Absence or failure to read this file will result in this ExecResource being non-compliant. Output file size is limited to 100K bytes.
script This property is required. String
An inline script. The size of the script is limited to 32KiB.
args This property is required. string[]
Optional arguments to pass to the source during execution.
file This property is required. OSPolicyResourceFileResponse
A remote or local file.
interpreter This property is required. string
The script interpreter to use.
outputFilePath This property is required. string
Only recorded for enforce Exec. Path to an output file (that is created by this Exec) whose content will be recorded in OSPolicyResourceCompliance after a successful run. Absence or failure to read this file will result in this ExecResource being non-compliant. Output file size is limited to 100K bytes.
script This property is required. string
An inline script. The size of the script is limited to 32KiB.
args This property is required. Sequence[str]
Optional arguments to pass to the source during execution.
file This property is required. OSPolicyResourceFileResponse
A remote or local file.
interpreter This property is required. str
The script interpreter to use.
output_file_path This property is required. str
Only recorded for enforce Exec. Path to an output file (that is created by this Exec) whose content will be recorded in OSPolicyResourceCompliance after a successful run. Absence or failure to read this file will result in this ExecResource being non-compliant. Output file size is limited to 100K bytes.
script This property is required. str
An inline script. The size of the script is limited to 32KiB.
args This property is required. List<String>
Optional arguments to pass to the source during execution.
file This property is required. Property Map
A remote or local file.
interpreter This property is required. String
The script interpreter to use.
outputFilePath This property is required. String
Only recorded for enforce Exec. Path to an output file (that is created by this Exec) whose content will be recorded in OSPolicyResourceCompliance after a successful run. Absence or failure to read this file will result in this ExecResource being non-compliant. Output file size is limited to 100K bytes.
script This property is required. String
An inline script. The size of the script is limited to 32KiB.

OSPolicyResourceExecResourceResponse
, OSPolicyResourceExecResourceResponseArgs

Enforce This property is required. Pulumi.GoogleNative.OSConfig.V1Alpha.Inputs.OSPolicyResourceExecResourceExecResponse
What to run to bring this resource into the desired state. An exit code of 100 indicates "success", any other exit code indicates a failure running enforce.
Validate This property is required. Pulumi.GoogleNative.OSConfig.V1Alpha.Inputs.OSPolicyResourceExecResourceExecResponse
What to run to validate this resource is in the desired state. An exit code of 100 indicates "in desired state", and exit code of 101 indicates "not in desired state". Any other exit code indicates a failure running validate.
Enforce This property is required. OSPolicyResourceExecResourceExecResponse
What to run to bring this resource into the desired state. An exit code of 100 indicates "success", any other exit code indicates a failure running enforce.
Validate This property is required. OSPolicyResourceExecResourceExecResponse
What to run to validate this resource is in the desired state. An exit code of 100 indicates "in desired state", and exit code of 101 indicates "not in desired state". Any other exit code indicates a failure running validate.
enforce This property is required. OSPolicyResourceExecResourceExecResponse
What to run to bring this resource into the desired state. An exit code of 100 indicates "success", any other exit code indicates a failure running enforce.
validate This property is required. OSPolicyResourceExecResourceExecResponse
What to run to validate this resource is in the desired state. An exit code of 100 indicates "in desired state", and exit code of 101 indicates "not in desired state". Any other exit code indicates a failure running validate.
enforce This property is required. OSPolicyResourceExecResourceExecResponse
What to run to bring this resource into the desired state. An exit code of 100 indicates "success", any other exit code indicates a failure running enforce.
validate This property is required. OSPolicyResourceExecResourceExecResponse
What to run to validate this resource is in the desired state. An exit code of 100 indicates "in desired state", and exit code of 101 indicates "not in desired state". Any other exit code indicates a failure running validate.
enforce This property is required. OSPolicyResourceExecResourceExecResponse
What to run to bring this resource into the desired state. An exit code of 100 indicates "success", any other exit code indicates a failure running enforce.
validate This property is required. OSPolicyResourceExecResourceExecResponse
What to run to validate this resource is in the desired state. An exit code of 100 indicates "in desired state", and exit code of 101 indicates "not in desired state". Any other exit code indicates a failure running validate.
enforce This property is required. Property Map
What to run to bring this resource into the desired state. An exit code of 100 indicates "success", any other exit code indicates a failure running enforce.
validate This property is required. Property Map
What to run to validate this resource is in the desired state. An exit code of 100 indicates "in desired state", and exit code of 101 indicates "not in desired state". Any other exit code indicates a failure running validate.

OSPolicyResourceFile
, OSPolicyResourceFileArgs

AllowInsecure bool
Defaults to false. When false, files are subject to validations based on the file type: Remote: A checksum must be specified. Cloud Storage: An object generation number must be specified.
Gcs Pulumi.GoogleNative.OSConfig.V1Alpha.Inputs.OSPolicyResourceFileGcs
A Cloud Storage object.
LocalPath string
A local path within the VM to use.
Remote Pulumi.GoogleNative.OSConfig.V1Alpha.Inputs.OSPolicyResourceFileRemote
A generic remote file.
AllowInsecure bool
Defaults to false. When false, files are subject to validations based on the file type: Remote: A checksum must be specified. Cloud Storage: An object generation number must be specified.
Gcs OSPolicyResourceFileGcs
A Cloud Storage object.
LocalPath string
A local path within the VM to use.
Remote OSPolicyResourceFileRemote
A generic remote file.
allowInsecure Boolean
Defaults to false. When false, files are subject to validations based on the file type: Remote: A checksum must be specified. Cloud Storage: An object generation number must be specified.
gcs OSPolicyResourceFileGcs
A Cloud Storage object.
localPath String
A local path within the VM to use.
remote OSPolicyResourceFileRemote
A generic remote file.
allowInsecure boolean
Defaults to false. When false, files are subject to validations based on the file type: Remote: A checksum must be specified. Cloud Storage: An object generation number must be specified.
gcs OSPolicyResourceFileGcs
A Cloud Storage object.
localPath string
A local path within the VM to use.
remote OSPolicyResourceFileRemote
A generic remote file.
allow_insecure bool
Defaults to false. When false, files are subject to validations based on the file type: Remote: A checksum must be specified. Cloud Storage: An object generation number must be specified.
gcs OSPolicyResourceFileGcs
A Cloud Storage object.
local_path str
A local path within the VM to use.
remote OSPolicyResourceFileRemote
A generic remote file.
allowInsecure Boolean
Defaults to false. When false, files are subject to validations based on the file type: Remote: A checksum must be specified. Cloud Storage: An object generation number must be specified.
gcs Property Map
A Cloud Storage object.
localPath String
A local path within the VM to use.
remote Property Map
A generic remote file.

OSPolicyResourceFileGcs
, OSPolicyResourceFileGcsArgs

Bucket This property is required. string
Bucket of the Cloud Storage object.
Object This property is required. string
Name of the Cloud Storage object.
Generation string
Generation number of the Cloud Storage object.
Bucket This property is required. string
Bucket of the Cloud Storage object.
Object This property is required. string
Name of the Cloud Storage object.
Generation string
Generation number of the Cloud Storage object.
bucket This property is required. String
Bucket of the Cloud Storage object.
object This property is required. String
Name of the Cloud Storage object.
generation String
Generation number of the Cloud Storage object.
bucket This property is required. string
Bucket of the Cloud Storage object.
object This property is required. string
Name of the Cloud Storage object.
generation string
Generation number of the Cloud Storage object.
bucket This property is required. str
Bucket of the Cloud Storage object.
object This property is required. str
Name of the Cloud Storage object.
generation str
Generation number of the Cloud Storage object.
bucket This property is required. String
Bucket of the Cloud Storage object.
object This property is required. String
Name of the Cloud Storage object.
generation String
Generation number of the Cloud Storage object.

OSPolicyResourceFileGcsResponse
, OSPolicyResourceFileGcsResponseArgs

Bucket This property is required. string
Bucket of the Cloud Storage object.
Generation This property is required. string
Generation number of the Cloud Storage object.
Object This property is required. string
Name of the Cloud Storage object.
Bucket This property is required. string
Bucket of the Cloud Storage object.
Generation This property is required. string
Generation number of the Cloud Storage object.
Object This property is required. string
Name of the Cloud Storage object.
bucket This property is required. String
Bucket of the Cloud Storage object.
generation This property is required. String
Generation number of the Cloud Storage object.
object This property is required. String
Name of the Cloud Storage object.
bucket This property is required. string
Bucket of the Cloud Storage object.
generation This property is required. string
Generation number of the Cloud Storage object.
object This property is required. string
Name of the Cloud Storage object.
bucket This property is required. str
Bucket of the Cloud Storage object.
generation This property is required. str
Generation number of the Cloud Storage object.
object This property is required. str
Name of the Cloud Storage object.
bucket This property is required. String
Bucket of the Cloud Storage object.
generation This property is required. String
Generation number of the Cloud Storage object.
object This property is required. String
Name of the Cloud Storage object.

OSPolicyResourceFileRemote
, OSPolicyResourceFileRemoteArgs

Uri This property is required. string
URI from which to fetch the object. It should contain both the protocol and path following the format {protocol}://{location}.
Sha256Checksum string
SHA256 checksum of the remote file.
Uri This property is required. string
URI from which to fetch the object. It should contain both the protocol and path following the format {protocol}://{location}.
Sha256Checksum string
SHA256 checksum of the remote file.
uri This property is required. String
URI from which to fetch the object. It should contain both the protocol and path following the format {protocol}://{location}.
sha256Checksum String
SHA256 checksum of the remote file.
uri This property is required. string
URI from which to fetch the object. It should contain both the protocol and path following the format {protocol}://{location}.
sha256Checksum string
SHA256 checksum of the remote file.
uri This property is required. str
URI from which to fetch the object. It should contain both the protocol and path following the format {protocol}://{location}.
sha256_checksum str
SHA256 checksum of the remote file.
uri This property is required. String
URI from which to fetch the object. It should contain both the protocol and path following the format {protocol}://{location}.
sha256Checksum String
SHA256 checksum of the remote file.

OSPolicyResourceFileRemoteResponse
, OSPolicyResourceFileRemoteResponseArgs

Sha256Checksum This property is required. string
SHA256 checksum of the remote file.
Uri This property is required. string
URI from which to fetch the object. It should contain both the protocol and path following the format {protocol}://{location}.
Sha256Checksum This property is required. string
SHA256 checksum of the remote file.
Uri This property is required. string
URI from which to fetch the object. It should contain both the protocol and path following the format {protocol}://{location}.
sha256Checksum This property is required. String
SHA256 checksum of the remote file.
uri This property is required. String
URI from which to fetch the object. It should contain both the protocol and path following the format {protocol}://{location}.
sha256Checksum This property is required. string
SHA256 checksum of the remote file.
uri This property is required. string
URI from which to fetch the object. It should contain both the protocol and path following the format {protocol}://{location}.
sha256_checksum This property is required. str
SHA256 checksum of the remote file.
uri This property is required. str
URI from which to fetch the object. It should contain both the protocol and path following the format {protocol}://{location}.
sha256Checksum This property is required. String
SHA256 checksum of the remote file.
uri This property is required. String
URI from which to fetch the object. It should contain both the protocol and path following the format {protocol}://{location}.

OSPolicyResourceFileResource
, OSPolicyResourceFileResourceArgs

Path This property is required. string
The absolute path of the file within the VM.
State This property is required. Pulumi.GoogleNative.OSConfig.V1Alpha.OSPolicyResourceFileResourceState
Desired state of the file.
Content string
A a file with this content. The size of the content is limited to 32KiB.
File Pulumi.GoogleNative.OSConfig.V1Alpha.Inputs.OSPolicyResourceFile
A remote or local source.
Permissions string
Consists of three octal digits which represent, in order, the permissions of the owner, group, and other users for the file (similarly to the numeric mode used in the linux chmod utility). Each digit represents a three bit number with the 4 bit corresponding to the read permissions, the 2 bit corresponds to the write bit, and the one bit corresponds to the execute permission. Default behavior is 755. Below are some examples of permissions and their associated values: read, write, and execute: 7 read and execute: 5 read and write: 6 read only: 4
Path This property is required. string
The absolute path of the file within the VM.
State This property is required. OSPolicyResourceFileResourceState
Desired state of the file.
Content string
A a file with this content. The size of the content is limited to 32KiB.
File OSPolicyResourceFile
A remote or local source.
Permissions string
Consists of three octal digits which represent, in order, the permissions of the owner, group, and other users for the file (similarly to the numeric mode used in the linux chmod utility). Each digit represents a three bit number with the 4 bit corresponding to the read permissions, the 2 bit corresponds to the write bit, and the one bit corresponds to the execute permission. Default behavior is 755. Below are some examples of permissions and their associated values: read, write, and execute: 7 read and execute: 5 read and write: 6 read only: 4
path This property is required. String
The absolute path of the file within the VM.
state This property is required. OSPolicyResourceFileResourceState
Desired state of the file.
content String
A a file with this content. The size of the content is limited to 32KiB.
file OSPolicyResourceFile
A remote or local source.
permissions String
Consists of three octal digits which represent, in order, the permissions of the owner, group, and other users for the file (similarly to the numeric mode used in the linux chmod utility). Each digit represents a three bit number with the 4 bit corresponding to the read permissions, the 2 bit corresponds to the write bit, and the one bit corresponds to the execute permission. Default behavior is 755. Below are some examples of permissions and their associated values: read, write, and execute: 7 read and execute: 5 read and write: 6 read only: 4
path This property is required. string
The absolute path of the file within the VM.
state This property is required. OSPolicyResourceFileResourceState
Desired state of the file.
content string
A a file with this content. The size of the content is limited to 32KiB.
file OSPolicyResourceFile
A remote or local source.
permissions string
Consists of three octal digits which represent, in order, the permissions of the owner, group, and other users for the file (similarly to the numeric mode used in the linux chmod utility). Each digit represents a three bit number with the 4 bit corresponding to the read permissions, the 2 bit corresponds to the write bit, and the one bit corresponds to the execute permission. Default behavior is 755. Below are some examples of permissions and their associated values: read, write, and execute: 7 read and execute: 5 read and write: 6 read only: 4
path This property is required. str
The absolute path of the file within the VM.
state This property is required. OSPolicyResourceFileResourceState
Desired state of the file.
content str
A a file with this content. The size of the content is limited to 32KiB.
file OSPolicyResourceFile
A remote or local source.
permissions str
Consists of three octal digits which represent, in order, the permissions of the owner, group, and other users for the file (similarly to the numeric mode used in the linux chmod utility). Each digit represents a three bit number with the 4 bit corresponding to the read permissions, the 2 bit corresponds to the write bit, and the one bit corresponds to the execute permission. Default behavior is 755. Below are some examples of permissions and their associated values: read, write, and execute: 7 read and execute: 5 read and write: 6 read only: 4
path This property is required. String
The absolute path of the file within the VM.
state This property is required. "DESIRED_STATE_UNSPECIFIED" | "PRESENT" | "ABSENT" | "CONTENTS_MATCH"
Desired state of the file.
content String
A a file with this content. The size of the content is limited to 32KiB.
file Property Map
A remote or local source.
permissions String
Consists of three octal digits which represent, in order, the permissions of the owner, group, and other users for the file (similarly to the numeric mode used in the linux chmod utility). Each digit represents a three bit number with the 4 bit corresponding to the read permissions, the 2 bit corresponds to the write bit, and the one bit corresponds to the execute permission. Default behavior is 755. Below are some examples of permissions and their associated values: read, write, and execute: 7 read and execute: 5 read and write: 6 read only: 4

OSPolicyResourceFileResourceResponse
, OSPolicyResourceFileResourceResponseArgs

Content This property is required. string
A a file with this content. The size of the content is limited to 32KiB.
File This property is required. Pulumi.GoogleNative.OSConfig.V1Alpha.Inputs.OSPolicyResourceFileResponse
A remote or local source.
Path This property is required. string
The absolute path of the file within the VM.
Permissions This property is required. string
Consists of three octal digits which represent, in order, the permissions of the owner, group, and other users for the file (similarly to the numeric mode used in the linux chmod utility). Each digit represents a three bit number with the 4 bit corresponding to the read permissions, the 2 bit corresponds to the write bit, and the one bit corresponds to the execute permission. Default behavior is 755. Below are some examples of permissions and their associated values: read, write, and execute: 7 read and execute: 5 read and write: 6 read only: 4
State This property is required. string
Desired state of the file.
Content This property is required. string
A a file with this content. The size of the content is limited to 32KiB.
File This property is required. OSPolicyResourceFileResponse
A remote or local source.
Path This property is required. string
The absolute path of the file within the VM.
Permissions This property is required. string
Consists of three octal digits which represent, in order, the permissions of the owner, group, and other users for the file (similarly to the numeric mode used in the linux chmod utility). Each digit represents a three bit number with the 4 bit corresponding to the read permissions, the 2 bit corresponds to the write bit, and the one bit corresponds to the execute permission. Default behavior is 755. Below are some examples of permissions and their associated values: read, write, and execute: 7 read and execute: 5 read and write: 6 read only: 4
State This property is required. string
Desired state of the file.
content This property is required. String
A a file with this content. The size of the content is limited to 32KiB.
file This property is required. OSPolicyResourceFileResponse
A remote or local source.
path This property is required. String
The absolute path of the file within the VM.
permissions This property is required. String
Consists of three octal digits which represent, in order, the permissions of the owner, group, and other users for the file (similarly to the numeric mode used in the linux chmod utility). Each digit represents a three bit number with the 4 bit corresponding to the read permissions, the 2 bit corresponds to the write bit, and the one bit corresponds to the execute permission. Default behavior is 755. Below are some examples of permissions and their associated values: read, write, and execute: 7 read and execute: 5 read and write: 6 read only: 4
state This property is required. String
Desired state of the file.
content This property is required. string
A a file with this content. The size of the content is limited to 32KiB.
file This property is required. OSPolicyResourceFileResponse
A remote or local source.
path This property is required. string
The absolute path of the file within the VM.
permissions This property is required. string
Consists of three octal digits which represent, in order, the permissions of the owner, group, and other users for the file (similarly to the numeric mode used in the linux chmod utility). Each digit represents a three bit number with the 4 bit corresponding to the read permissions, the 2 bit corresponds to the write bit, and the one bit corresponds to the execute permission. Default behavior is 755. Below are some examples of permissions and their associated values: read, write, and execute: 7 read and execute: 5 read and write: 6 read only: 4
state This property is required. string
Desired state of the file.
content This property is required. str
A a file with this content. The size of the content is limited to 32KiB.
file This property is required. OSPolicyResourceFileResponse
A remote or local source.
path This property is required. str
The absolute path of the file within the VM.
permissions This property is required. str
Consists of three octal digits which represent, in order, the permissions of the owner, group, and other users for the file (similarly to the numeric mode used in the linux chmod utility). Each digit represents a three bit number with the 4 bit corresponding to the read permissions, the 2 bit corresponds to the write bit, and the one bit corresponds to the execute permission. Default behavior is 755. Below are some examples of permissions and their associated values: read, write, and execute: 7 read and execute: 5 read and write: 6 read only: 4
state This property is required. str
Desired state of the file.
content This property is required. String
A a file with this content. The size of the content is limited to 32KiB.
file This property is required. Property Map
A remote or local source.
path This property is required. String
The absolute path of the file within the VM.
permissions This property is required. String
Consists of three octal digits which represent, in order, the permissions of the owner, group, and other users for the file (similarly to the numeric mode used in the linux chmod utility). Each digit represents a three bit number with the 4 bit corresponding to the read permissions, the 2 bit corresponds to the write bit, and the one bit corresponds to the execute permission. Default behavior is 755. Below are some examples of permissions and their associated values: read, write, and execute: 7 read and execute: 5 read and write: 6 read only: 4
state This property is required. String
Desired state of the file.

OSPolicyResourceFileResourceState
, OSPolicyResourceFileResourceStateArgs

DesiredStateUnspecified
DESIRED_STATE_UNSPECIFIEDUnspecified is invalid.
Present
PRESENTEnsure file at path is present.
Absent
ABSENTEnsure file at path is absent.
ContentsMatch
CONTENTS_MATCHEnsure the contents of the file at path matches. If the file does not exist it will be created.
OSPolicyResourceFileResourceStateDesiredStateUnspecified
DESIRED_STATE_UNSPECIFIEDUnspecified is invalid.
OSPolicyResourceFileResourceStatePresent
PRESENTEnsure file at path is present.
OSPolicyResourceFileResourceStateAbsent
ABSENTEnsure file at path is absent.
OSPolicyResourceFileResourceStateContentsMatch
CONTENTS_MATCHEnsure the contents of the file at path matches. If the file does not exist it will be created.
DesiredStateUnspecified
DESIRED_STATE_UNSPECIFIEDUnspecified is invalid.
Present
PRESENTEnsure file at path is present.
Absent
ABSENTEnsure file at path is absent.
ContentsMatch
CONTENTS_MATCHEnsure the contents of the file at path matches. If the file does not exist it will be created.
DesiredStateUnspecified
DESIRED_STATE_UNSPECIFIEDUnspecified is invalid.
Present
PRESENTEnsure file at path is present.
Absent
ABSENTEnsure file at path is absent.
ContentsMatch
CONTENTS_MATCHEnsure the contents of the file at path matches. If the file does not exist it will be created.
DESIRED_STATE_UNSPECIFIED
DESIRED_STATE_UNSPECIFIEDUnspecified is invalid.
PRESENT
PRESENTEnsure file at path is present.
ABSENT
ABSENTEnsure file at path is absent.
CONTENTS_MATCH
CONTENTS_MATCHEnsure the contents of the file at path matches. If the file does not exist it will be created.
"DESIRED_STATE_UNSPECIFIED"
DESIRED_STATE_UNSPECIFIEDUnspecified is invalid.
"PRESENT"
PRESENTEnsure file at path is present.
"ABSENT"
ABSENTEnsure file at path is absent.
"CONTENTS_MATCH"
CONTENTS_MATCHEnsure the contents of the file at path matches. If the file does not exist it will be created.

OSPolicyResourceFileResponse
, OSPolicyResourceFileResponseArgs

AllowInsecure This property is required. bool
Defaults to false. When false, files are subject to validations based on the file type: Remote: A checksum must be specified. Cloud Storage: An object generation number must be specified.
Gcs This property is required. Pulumi.GoogleNative.OSConfig.V1Alpha.Inputs.OSPolicyResourceFileGcsResponse
A Cloud Storage object.
LocalPath This property is required. string
A local path within the VM to use.
Remote This property is required. Pulumi.GoogleNative.OSConfig.V1Alpha.Inputs.OSPolicyResourceFileRemoteResponse
A generic remote file.
AllowInsecure This property is required. bool
Defaults to false. When false, files are subject to validations based on the file type: Remote: A checksum must be specified. Cloud Storage: An object generation number must be specified.
Gcs This property is required. OSPolicyResourceFileGcsResponse
A Cloud Storage object.
LocalPath This property is required. string
A local path within the VM to use.
Remote This property is required. OSPolicyResourceFileRemoteResponse
A generic remote file.
allowInsecure This property is required. Boolean
Defaults to false. When false, files are subject to validations based on the file type: Remote: A checksum must be specified. Cloud Storage: An object generation number must be specified.
gcs This property is required. OSPolicyResourceFileGcsResponse
A Cloud Storage object.
localPath This property is required. String
A local path within the VM to use.
remote This property is required. OSPolicyResourceFileRemoteResponse
A generic remote file.
allowInsecure This property is required. boolean
Defaults to false. When false, files are subject to validations based on the file type: Remote: A checksum must be specified. Cloud Storage: An object generation number must be specified.
gcs This property is required. OSPolicyResourceFileGcsResponse
A Cloud Storage object.
localPath This property is required. string
A local path within the VM to use.
remote This property is required. OSPolicyResourceFileRemoteResponse
A generic remote file.
allow_insecure This property is required. bool
Defaults to false. When false, files are subject to validations based on the file type: Remote: A checksum must be specified. Cloud Storage: An object generation number must be specified.
gcs This property is required. OSPolicyResourceFileGcsResponse
A Cloud Storage object.
local_path This property is required. str
A local path within the VM to use.
remote This property is required. OSPolicyResourceFileRemoteResponse
A generic remote file.
allowInsecure This property is required. Boolean
Defaults to false. When false, files are subject to validations based on the file type: Remote: A checksum must be specified. Cloud Storage: An object generation number must be specified.
gcs This property is required. Property Map
A Cloud Storage object.
localPath This property is required. String
A local path within the VM to use.
remote This property is required. Property Map
A generic remote file.

OSPolicyResourceGroup
, OSPolicyResourceGroupArgs

Resources This property is required. List<Pulumi.GoogleNative.OSConfig.V1Alpha.Inputs.OSPolicyResource>
List of resources configured for this resource group. The resources are executed in the exact order specified here.
InventoryFilters List<Pulumi.GoogleNative.OSConfig.V1Alpha.Inputs.OSPolicyInventoryFilter>
List of inventory filters for the resource group. The resources in this resource group are applied to the target VM if it satisfies at least one of the following inventory filters. For example, to apply this resource group to VMs running either RHEL or CentOS operating systems, specify 2 items for the list with following values: inventory_filters[0].os_short_name='rhel' and inventory_filters[1].os_short_name='centos' If the list is empty, this resource group will be applied to the target VM unconditionally.
OsFilter Pulumi.GoogleNative.OSConfig.V1Alpha.Inputs.OSPolicyOSFilter
Deprecated. Use the inventory_filters field instead. Used to specify the OS filter for a resource group

Deprecated: Deprecated. Use the inventory_filters field instead. Used to specify the OS filter for a resource group

Resources This property is required. []OSPolicyResource
List of resources configured for this resource group. The resources are executed in the exact order specified here.
InventoryFilters []OSPolicyInventoryFilter
List of inventory filters for the resource group. The resources in this resource group are applied to the target VM if it satisfies at least one of the following inventory filters. For example, to apply this resource group to VMs running either RHEL or CentOS operating systems, specify 2 items for the list with following values: inventory_filters[0].os_short_name='rhel' and inventory_filters[1].os_short_name='centos' If the list is empty, this resource group will be applied to the target VM unconditionally.
OsFilter OSPolicyOSFilter
Deprecated. Use the inventory_filters field instead. Used to specify the OS filter for a resource group

Deprecated: Deprecated. Use the inventory_filters field instead. Used to specify the OS filter for a resource group

resources This property is required. List<OSPolicyResource>
List of resources configured for this resource group. The resources are executed in the exact order specified here.
inventoryFilters List<OSPolicyInventoryFilter>
List of inventory filters for the resource group. The resources in this resource group are applied to the target VM if it satisfies at least one of the following inventory filters. For example, to apply this resource group to VMs running either RHEL or CentOS operating systems, specify 2 items for the list with following values: inventory_filters[0].os_short_name='rhel' and inventory_filters[1].os_short_name='centos' If the list is empty, this resource group will be applied to the target VM unconditionally.
osFilter OSPolicyOSFilter
Deprecated. Use the inventory_filters field instead. Used to specify the OS filter for a resource group

Deprecated: Deprecated. Use the inventory_filters field instead. Used to specify the OS filter for a resource group

resources This property is required. OSPolicyResource[]
List of resources configured for this resource group. The resources are executed in the exact order specified here.
inventoryFilters OSPolicyInventoryFilter[]
List of inventory filters for the resource group. The resources in this resource group are applied to the target VM if it satisfies at least one of the following inventory filters. For example, to apply this resource group to VMs running either RHEL or CentOS operating systems, specify 2 items for the list with following values: inventory_filters[0].os_short_name='rhel' and inventory_filters[1].os_short_name='centos' If the list is empty, this resource group will be applied to the target VM unconditionally.
osFilter OSPolicyOSFilter
Deprecated. Use the inventory_filters field instead. Used to specify the OS filter for a resource group

Deprecated: Deprecated. Use the inventory_filters field instead. Used to specify the OS filter for a resource group

resources This property is required. Sequence[OSPolicyResource]
List of resources configured for this resource group. The resources are executed in the exact order specified here.
inventory_filters Sequence[OSPolicyInventoryFilter]
List of inventory filters for the resource group. The resources in this resource group are applied to the target VM if it satisfies at least one of the following inventory filters. For example, to apply this resource group to VMs running either RHEL or CentOS operating systems, specify 2 items for the list with following values: inventory_filters[0].os_short_name='rhel' and inventory_filters[1].os_short_name='centos' If the list is empty, this resource group will be applied to the target VM unconditionally.
os_filter OSPolicyOSFilter
Deprecated. Use the inventory_filters field instead. Used to specify the OS filter for a resource group

Deprecated: Deprecated. Use the inventory_filters field instead. Used to specify the OS filter for a resource group

resources This property is required. List<Property Map>
List of resources configured for this resource group. The resources are executed in the exact order specified here.
inventoryFilters List<Property Map>
List of inventory filters for the resource group. The resources in this resource group are applied to the target VM if it satisfies at least one of the following inventory filters. For example, to apply this resource group to VMs running either RHEL or CentOS operating systems, specify 2 items for the list with following values: inventory_filters[0].os_short_name='rhel' and inventory_filters[1].os_short_name='centos' If the list is empty, this resource group will be applied to the target VM unconditionally.
osFilter Property Map
Deprecated. Use the inventory_filters field instead. Used to specify the OS filter for a resource group

Deprecated: Deprecated. Use the inventory_filters field instead. Used to specify the OS filter for a resource group

OSPolicyResourceGroupResponse
, OSPolicyResourceGroupResponseArgs

InventoryFilters This property is required. List<Pulumi.GoogleNative.OSConfig.V1Alpha.Inputs.OSPolicyInventoryFilterResponse>
List of inventory filters for the resource group. The resources in this resource group are applied to the target VM if it satisfies at least one of the following inventory filters. For example, to apply this resource group to VMs running either RHEL or CentOS operating systems, specify 2 items for the list with following values: inventory_filters[0].os_short_name='rhel' and inventory_filters[1].os_short_name='centos' If the list is empty, this resource group will be applied to the target VM unconditionally.
OsFilter This property is required. Pulumi.GoogleNative.OSConfig.V1Alpha.Inputs.OSPolicyOSFilterResponse
Deprecated. Use the inventory_filters field instead. Used to specify the OS filter for a resource group

Deprecated: Deprecated. Use the inventory_filters field instead. Used to specify the OS filter for a resource group

Resources This property is required. List<Pulumi.GoogleNative.OSConfig.V1Alpha.Inputs.OSPolicyResourceResponse>
List of resources configured for this resource group. The resources are executed in the exact order specified here.
InventoryFilters This property is required. []OSPolicyInventoryFilterResponse
List of inventory filters for the resource group. The resources in this resource group are applied to the target VM if it satisfies at least one of the following inventory filters. For example, to apply this resource group to VMs running either RHEL or CentOS operating systems, specify 2 items for the list with following values: inventory_filters[0].os_short_name='rhel' and inventory_filters[1].os_short_name='centos' If the list is empty, this resource group will be applied to the target VM unconditionally.
OsFilter This property is required. OSPolicyOSFilterResponse
Deprecated. Use the inventory_filters field instead. Used to specify the OS filter for a resource group

Deprecated: Deprecated. Use the inventory_filters field instead. Used to specify the OS filter for a resource group

Resources This property is required. []OSPolicyResourceResponse
List of resources configured for this resource group. The resources are executed in the exact order specified here.
inventoryFilters This property is required. List<OSPolicyInventoryFilterResponse>
List of inventory filters for the resource group. The resources in this resource group are applied to the target VM if it satisfies at least one of the following inventory filters. For example, to apply this resource group to VMs running either RHEL or CentOS operating systems, specify 2 items for the list with following values: inventory_filters[0].os_short_name='rhel' and inventory_filters[1].os_short_name='centos' If the list is empty, this resource group will be applied to the target VM unconditionally.
osFilter This property is required. OSPolicyOSFilterResponse
Deprecated. Use the inventory_filters field instead. Used to specify the OS filter for a resource group

Deprecated: Deprecated. Use the inventory_filters field instead. Used to specify the OS filter for a resource group

resources This property is required. List<OSPolicyResourceResponse>
List of resources configured for this resource group. The resources are executed in the exact order specified here.
inventoryFilters This property is required. OSPolicyInventoryFilterResponse[]
List of inventory filters for the resource group. The resources in this resource group are applied to the target VM if it satisfies at least one of the following inventory filters. For example, to apply this resource group to VMs running either RHEL or CentOS operating systems, specify 2 items for the list with following values: inventory_filters[0].os_short_name='rhel' and inventory_filters[1].os_short_name='centos' If the list is empty, this resource group will be applied to the target VM unconditionally.
osFilter This property is required. OSPolicyOSFilterResponse
Deprecated. Use the inventory_filters field instead. Used to specify the OS filter for a resource group

Deprecated: Deprecated. Use the inventory_filters field instead. Used to specify the OS filter for a resource group

resources This property is required. OSPolicyResourceResponse[]
List of resources configured for this resource group. The resources are executed in the exact order specified here.
inventory_filters This property is required. Sequence[OSPolicyInventoryFilterResponse]
List of inventory filters for the resource group. The resources in this resource group are applied to the target VM if it satisfies at least one of the following inventory filters. For example, to apply this resource group to VMs running either RHEL or CentOS operating systems, specify 2 items for the list with following values: inventory_filters[0].os_short_name='rhel' and inventory_filters[1].os_short_name='centos' If the list is empty, this resource group will be applied to the target VM unconditionally.
os_filter This property is required. OSPolicyOSFilterResponse
Deprecated. Use the inventory_filters field instead. Used to specify the OS filter for a resource group

Deprecated: Deprecated. Use the inventory_filters field instead. Used to specify the OS filter for a resource group

resources This property is required. Sequence[OSPolicyResourceResponse]
List of resources configured for this resource group. The resources are executed in the exact order specified here.
inventoryFilters This property is required. List<Property Map>
List of inventory filters for the resource group. The resources in this resource group are applied to the target VM if it satisfies at least one of the following inventory filters. For example, to apply this resource group to VMs running either RHEL or CentOS operating systems, specify 2 items for the list with following values: inventory_filters[0].os_short_name='rhel' and inventory_filters[1].os_short_name='centos' If the list is empty, this resource group will be applied to the target VM unconditionally.
osFilter This property is required. Property Map
Deprecated. Use the inventory_filters field instead. Used to specify the OS filter for a resource group

Deprecated: Deprecated. Use the inventory_filters field instead. Used to specify the OS filter for a resource group

resources This property is required. List<Property Map>
List of resources configured for this resource group. The resources are executed in the exact order specified here.

OSPolicyResourcePackageResource
, OSPolicyResourcePackageResourceArgs

DesiredState This property is required. Pulumi.GoogleNative.OSConfig.V1Alpha.OSPolicyResourcePackageResourceDesiredState
The desired state the agent should maintain for this package.
Apt Pulumi.GoogleNative.OSConfig.V1Alpha.Inputs.OSPolicyResourcePackageResourceAPT
A package managed by Apt.
Deb Pulumi.GoogleNative.OSConfig.V1Alpha.Inputs.OSPolicyResourcePackageResourceDeb
A deb package file.
Googet Pulumi.GoogleNative.OSConfig.V1Alpha.Inputs.OSPolicyResourcePackageResourceGooGet
A package managed by GooGet.
Msi Pulumi.GoogleNative.OSConfig.V1Alpha.Inputs.OSPolicyResourcePackageResourceMSI
An MSI package.
Rpm Pulumi.GoogleNative.OSConfig.V1Alpha.Inputs.OSPolicyResourcePackageResourceRPM
An rpm package file.
Yum Pulumi.GoogleNative.OSConfig.V1Alpha.Inputs.OSPolicyResourcePackageResourceYUM
A package managed by YUM.
Zypper Pulumi.GoogleNative.OSConfig.V1Alpha.Inputs.OSPolicyResourcePackageResourceZypper
A package managed by Zypper.
DesiredState This property is required. OSPolicyResourcePackageResourceDesiredState
The desired state the agent should maintain for this package.
Apt OSPolicyResourcePackageResourceAPT
A package managed by Apt.
Deb OSPolicyResourcePackageResourceDeb
A deb package file.
Googet OSPolicyResourcePackageResourceGooGet
A package managed by GooGet.
Msi OSPolicyResourcePackageResourceMSI
An MSI package.
Rpm OSPolicyResourcePackageResourceRPM
An rpm package file.
Yum OSPolicyResourcePackageResourceYUM
A package managed by YUM.
Zypper OSPolicyResourcePackageResourceZypper
A package managed by Zypper.
desiredState This property is required. OSPolicyResourcePackageResourceDesiredState
The desired state the agent should maintain for this package.
apt OSPolicyResourcePackageResourceAPT
A package managed by Apt.
deb OSPolicyResourcePackageResourceDeb
A deb package file.
googet OSPolicyResourcePackageResourceGooGet
A package managed by GooGet.
msi OSPolicyResourcePackageResourceMSI
An MSI package.
rpm OSPolicyResourcePackageResourceRPM
An rpm package file.
yum OSPolicyResourcePackageResourceYUM
A package managed by YUM.
zypper OSPolicyResourcePackageResourceZypper
A package managed by Zypper.
desiredState This property is required. OSPolicyResourcePackageResourceDesiredState
The desired state the agent should maintain for this package.
apt OSPolicyResourcePackageResourceAPT
A package managed by Apt.
deb OSPolicyResourcePackageResourceDeb
A deb package file.
googet OSPolicyResourcePackageResourceGooGet
A package managed by GooGet.
msi OSPolicyResourcePackageResourceMSI
An MSI package.
rpm OSPolicyResourcePackageResourceRPM
An rpm package file.
yum OSPolicyResourcePackageResourceYUM
A package managed by YUM.
zypper OSPolicyResourcePackageResourceZypper
A package managed by Zypper.
desired_state This property is required. OSPolicyResourcePackageResourceDesiredState
The desired state the agent should maintain for this package.
apt OSPolicyResourcePackageResourceAPT
A package managed by Apt.
deb OSPolicyResourcePackageResourceDeb
A deb package file.
googet OSPolicyResourcePackageResourceGooGet
A package managed by GooGet.
msi OSPolicyResourcePackageResourceMSI
An MSI package.
rpm OSPolicyResourcePackageResourceRPM
An rpm package file.
yum OSPolicyResourcePackageResourceYUM
A package managed by YUM.
zypper OSPolicyResourcePackageResourceZypper
A package managed by Zypper.
desiredState This property is required. "DESIRED_STATE_UNSPECIFIED" | "INSTALLED" | "REMOVED"
The desired state the agent should maintain for this package.
apt Property Map
A package managed by Apt.
deb Property Map
A deb package file.
googet Property Map
A package managed by GooGet.
msi Property Map
An MSI package.
rpm Property Map
An rpm package file.
yum Property Map
A package managed by YUM.
zypper Property Map
A package managed by Zypper.

OSPolicyResourcePackageResourceAPT
, OSPolicyResourcePackageResourceAPTArgs

Name This property is required. string
Package name.
Name This property is required. string
Package name.
name This property is required. String
Package name.
name This property is required. string
Package name.
name This property is required. str
Package name.
name This property is required. String
Package name.

OSPolicyResourcePackageResourceAPTResponse
, OSPolicyResourcePackageResourceAPTResponseArgs

Name This property is required. string
Package name.
Name This property is required. string
Package name.
name This property is required. String
Package name.
name This property is required. string
Package name.
name This property is required. str
Package name.
name This property is required. String
Package name.

OSPolicyResourcePackageResourceDeb
, OSPolicyResourcePackageResourceDebArgs

Source This property is required. Pulumi.GoogleNative.OSConfig.V1Alpha.Inputs.OSPolicyResourceFile
A deb package.
PullDeps bool
Whether dependencies should also be installed. - install when false: dpkg -i package - install when true: apt-get update && apt-get -y install package.deb
Source This property is required. OSPolicyResourceFile
A deb package.
PullDeps bool
Whether dependencies should also be installed. - install when false: dpkg -i package - install when true: apt-get update && apt-get -y install package.deb
source This property is required. OSPolicyResourceFile
A deb package.
pullDeps Boolean
Whether dependencies should also be installed. - install when false: dpkg -i package - install when true: apt-get update && apt-get -y install package.deb
source This property is required. OSPolicyResourceFile
A deb package.
pullDeps boolean
Whether dependencies should also be installed. - install when false: dpkg -i package - install when true: apt-get update && apt-get -y install package.deb
source This property is required. OSPolicyResourceFile
A deb package.
pull_deps bool
Whether dependencies should also be installed. - install when false: dpkg -i package - install when true: apt-get update && apt-get -y install package.deb
source This property is required. Property Map
A deb package.
pullDeps Boolean
Whether dependencies should also be installed. - install when false: dpkg -i package - install when true: apt-get update && apt-get -y install package.deb

OSPolicyResourcePackageResourceDebResponse
, OSPolicyResourcePackageResourceDebResponseArgs

PullDeps This property is required. bool
Whether dependencies should also be installed. - install when false: dpkg -i package - install when true: apt-get update && apt-get -y install package.deb
Source This property is required. Pulumi.GoogleNative.OSConfig.V1Alpha.Inputs.OSPolicyResourceFileResponse
A deb package.
PullDeps This property is required. bool
Whether dependencies should also be installed. - install when false: dpkg -i package - install when true: apt-get update && apt-get -y install package.deb
Source This property is required. OSPolicyResourceFileResponse
A deb package.
pullDeps This property is required. Boolean
Whether dependencies should also be installed. - install when false: dpkg -i package - install when true: apt-get update && apt-get -y install package.deb
source This property is required. OSPolicyResourceFileResponse
A deb package.
pullDeps This property is required. boolean
Whether dependencies should also be installed. - install when false: dpkg -i package - install when true: apt-get update && apt-get -y install package.deb
source This property is required. OSPolicyResourceFileResponse
A deb package.
pull_deps This property is required. bool
Whether dependencies should also be installed. - install when false: dpkg -i package - install when true: apt-get update && apt-get -y install package.deb
source This property is required. OSPolicyResourceFileResponse
A deb package.
pullDeps This property is required. Boolean
Whether dependencies should also be installed. - install when false: dpkg -i package - install when true: apt-get update && apt-get -y install package.deb
source This property is required. Property Map
A deb package.

OSPolicyResourcePackageResourceDesiredState
, OSPolicyResourcePackageResourceDesiredStateArgs

DesiredStateUnspecified
DESIRED_STATE_UNSPECIFIEDUnspecified is invalid.
Installed
INSTALLEDEnsure that the package is installed.
Removed
REMOVEDThe agent ensures that the package is not installed and uninstalls it if detected.
OSPolicyResourcePackageResourceDesiredStateDesiredStateUnspecified
DESIRED_STATE_UNSPECIFIEDUnspecified is invalid.
OSPolicyResourcePackageResourceDesiredStateInstalled
INSTALLEDEnsure that the package is installed.
OSPolicyResourcePackageResourceDesiredStateRemoved
REMOVEDThe agent ensures that the package is not installed and uninstalls it if detected.
DesiredStateUnspecified
DESIRED_STATE_UNSPECIFIEDUnspecified is invalid.
Installed
INSTALLEDEnsure that the package is installed.
Removed
REMOVEDThe agent ensures that the package is not installed and uninstalls it if detected.
DesiredStateUnspecified
DESIRED_STATE_UNSPECIFIEDUnspecified is invalid.
Installed
INSTALLEDEnsure that the package is installed.
Removed
REMOVEDThe agent ensures that the package is not installed and uninstalls it if detected.
DESIRED_STATE_UNSPECIFIED
DESIRED_STATE_UNSPECIFIEDUnspecified is invalid.
INSTALLED
INSTALLEDEnsure that the package is installed.
REMOVED
REMOVEDThe agent ensures that the package is not installed and uninstalls it if detected.
"DESIRED_STATE_UNSPECIFIED"
DESIRED_STATE_UNSPECIFIEDUnspecified is invalid.
"INSTALLED"
INSTALLEDEnsure that the package is installed.
"REMOVED"
REMOVEDThe agent ensures that the package is not installed and uninstalls it if detected.

OSPolicyResourcePackageResourceGooGet
, OSPolicyResourcePackageResourceGooGetArgs

Name This property is required. string
Package name.
Name This property is required. string
Package name.
name This property is required. String
Package name.
name This property is required. string
Package name.
name This property is required. str
Package name.
name This property is required. String
Package name.

OSPolicyResourcePackageResourceGooGetResponse
, OSPolicyResourcePackageResourceGooGetResponseArgs

Name This property is required. string
Package name.
Name This property is required. string
Package name.
name This property is required. String
Package name.
name This property is required. string
Package name.
name This property is required. str
Package name.
name This property is required. String
Package name.

OSPolicyResourcePackageResourceMSI
, OSPolicyResourcePackageResourceMSIArgs

Source This property is required. Pulumi.GoogleNative.OSConfig.V1Alpha.Inputs.OSPolicyResourceFile
The MSI package.
Properties List<string>
Additional properties to use during installation. This should be in the format of Property=Setting. Appended to the defaults of ACTION=INSTALL REBOOT=ReallySuppress.
Source This property is required. OSPolicyResourceFile
The MSI package.
Properties []string
Additional properties to use during installation. This should be in the format of Property=Setting. Appended to the defaults of ACTION=INSTALL REBOOT=ReallySuppress.
source This property is required. OSPolicyResourceFile
The MSI package.
properties List<String>
Additional properties to use during installation. This should be in the format of Property=Setting. Appended to the defaults of ACTION=INSTALL REBOOT=ReallySuppress.
source This property is required. OSPolicyResourceFile
The MSI package.
properties string[]
Additional properties to use during installation. This should be in the format of Property=Setting. Appended to the defaults of ACTION=INSTALL REBOOT=ReallySuppress.
source This property is required. OSPolicyResourceFile
The MSI package.
properties Sequence[str]
Additional properties to use during installation. This should be in the format of Property=Setting. Appended to the defaults of ACTION=INSTALL REBOOT=ReallySuppress.
source This property is required. Property Map
The MSI package.
properties List<String>
Additional properties to use during installation. This should be in the format of Property=Setting. Appended to the defaults of ACTION=INSTALL REBOOT=ReallySuppress.

OSPolicyResourcePackageResourceMSIResponse
, OSPolicyResourcePackageResourceMSIResponseArgs

Properties This property is required. List<string>
Additional properties to use during installation. This should be in the format of Property=Setting. Appended to the defaults of ACTION=INSTALL REBOOT=ReallySuppress.
Source This property is required. Pulumi.GoogleNative.OSConfig.V1Alpha.Inputs.OSPolicyResourceFileResponse
The MSI package.
Properties This property is required. []string
Additional properties to use during installation. This should be in the format of Property=Setting. Appended to the defaults of ACTION=INSTALL REBOOT=ReallySuppress.
Source This property is required. OSPolicyResourceFileResponse
The MSI package.
properties This property is required. List<String>
Additional properties to use during installation. This should be in the format of Property=Setting. Appended to the defaults of ACTION=INSTALL REBOOT=ReallySuppress.
source This property is required. OSPolicyResourceFileResponse
The MSI package.
properties This property is required. string[]
Additional properties to use during installation. This should be in the format of Property=Setting. Appended to the defaults of ACTION=INSTALL REBOOT=ReallySuppress.
source This property is required. OSPolicyResourceFileResponse
The MSI package.
properties This property is required. Sequence[str]
Additional properties to use during installation. This should be in the format of Property=Setting. Appended to the defaults of ACTION=INSTALL REBOOT=ReallySuppress.
source This property is required. OSPolicyResourceFileResponse
The MSI package.
properties This property is required. List<String>
Additional properties to use during installation. This should be in the format of Property=Setting. Appended to the defaults of ACTION=INSTALL REBOOT=ReallySuppress.
source This property is required. Property Map
The MSI package.

OSPolicyResourcePackageResourceRPM
, OSPolicyResourcePackageResourceRPMArgs

Source This property is required. Pulumi.GoogleNative.OSConfig.V1Alpha.Inputs.OSPolicyResourceFile
An rpm package.
PullDeps bool
Whether dependencies should also be installed. - install when false: rpm --upgrade --replacepkgs package.rpm - install when true: yum -y install package.rpm or zypper -y install package.rpm
Source This property is required. OSPolicyResourceFile
An rpm package.
PullDeps bool
Whether dependencies should also be installed. - install when false: rpm --upgrade --replacepkgs package.rpm - install when true: yum -y install package.rpm or zypper -y install package.rpm
source This property is required. OSPolicyResourceFile
An rpm package.
pullDeps Boolean
Whether dependencies should also be installed. - install when false: rpm --upgrade --replacepkgs package.rpm - install when true: yum -y install package.rpm or zypper -y install package.rpm
source This property is required. OSPolicyResourceFile
An rpm package.
pullDeps boolean
Whether dependencies should also be installed. - install when false: rpm --upgrade --replacepkgs package.rpm - install when true: yum -y install package.rpm or zypper -y install package.rpm
source This property is required. OSPolicyResourceFile
An rpm package.
pull_deps bool
Whether dependencies should also be installed. - install when false: rpm --upgrade --replacepkgs package.rpm - install when true: yum -y install package.rpm or zypper -y install package.rpm
source This property is required. Property Map
An rpm package.
pullDeps Boolean
Whether dependencies should also be installed. - install when false: rpm --upgrade --replacepkgs package.rpm - install when true: yum -y install package.rpm or zypper -y install package.rpm

OSPolicyResourcePackageResourceRPMResponse
, OSPolicyResourcePackageResourceRPMResponseArgs

PullDeps This property is required. bool
Whether dependencies should also be installed. - install when false: rpm --upgrade --replacepkgs package.rpm - install when true: yum -y install package.rpm or zypper -y install package.rpm
Source This property is required. Pulumi.GoogleNative.OSConfig.V1Alpha.Inputs.OSPolicyResourceFileResponse
An rpm package.
PullDeps This property is required. bool
Whether dependencies should also be installed. - install when false: rpm --upgrade --replacepkgs package.rpm - install when true: yum -y install package.rpm or zypper -y install package.rpm
Source This property is required. OSPolicyResourceFileResponse
An rpm package.
pullDeps This property is required. Boolean
Whether dependencies should also be installed. - install when false: rpm --upgrade --replacepkgs package.rpm - install when true: yum -y install package.rpm or zypper -y install package.rpm
source This property is required. OSPolicyResourceFileResponse
An rpm package.
pullDeps This property is required. boolean
Whether dependencies should also be installed. - install when false: rpm --upgrade --replacepkgs package.rpm - install when true: yum -y install package.rpm or zypper -y install package.rpm
source This property is required. OSPolicyResourceFileResponse
An rpm package.
pull_deps This property is required. bool
Whether dependencies should also be installed. - install when false: rpm --upgrade --replacepkgs package.rpm - install when true: yum -y install package.rpm or zypper -y install package.rpm
source This property is required. OSPolicyResourceFileResponse
An rpm package.
pullDeps This property is required. Boolean
Whether dependencies should also be installed. - install when false: rpm --upgrade --replacepkgs package.rpm - install when true: yum -y install package.rpm or zypper -y install package.rpm
source This property is required. Property Map
An rpm package.

OSPolicyResourcePackageResourceResponse
, OSPolicyResourcePackageResourceResponseArgs

Apt This property is required. Pulumi.GoogleNative.OSConfig.V1Alpha.Inputs.OSPolicyResourcePackageResourceAPTResponse
A package managed by Apt.
Deb This property is required. Pulumi.GoogleNative.OSConfig.V1Alpha.Inputs.OSPolicyResourcePackageResourceDebResponse
A deb package file.
DesiredState This property is required. string
The desired state the agent should maintain for this package.
Googet This property is required. Pulumi.GoogleNative.OSConfig.V1Alpha.Inputs.OSPolicyResourcePackageResourceGooGetResponse
A package managed by GooGet.
Msi This property is required. Pulumi.GoogleNative.OSConfig.V1Alpha.Inputs.OSPolicyResourcePackageResourceMSIResponse
An MSI package.
Rpm This property is required. Pulumi.GoogleNative.OSConfig.V1Alpha.Inputs.OSPolicyResourcePackageResourceRPMResponse
An rpm package file.
Yum This property is required. Pulumi.GoogleNative.OSConfig.V1Alpha.Inputs.OSPolicyResourcePackageResourceYUMResponse
A package managed by YUM.
Zypper This property is required. Pulumi.GoogleNative.OSConfig.V1Alpha.Inputs.OSPolicyResourcePackageResourceZypperResponse
A package managed by Zypper.
Apt This property is required. OSPolicyResourcePackageResourceAPTResponse
A package managed by Apt.
Deb This property is required. OSPolicyResourcePackageResourceDebResponse
A deb package file.
DesiredState This property is required. string
The desired state the agent should maintain for this package.
Googet This property is required. OSPolicyResourcePackageResourceGooGetResponse
A package managed by GooGet.
Msi This property is required. OSPolicyResourcePackageResourceMSIResponse
An MSI package.
Rpm This property is required. OSPolicyResourcePackageResourceRPMResponse
An rpm package file.
Yum This property is required. OSPolicyResourcePackageResourceYUMResponse
A package managed by YUM.
Zypper This property is required. OSPolicyResourcePackageResourceZypperResponse
A package managed by Zypper.
apt This property is required. OSPolicyResourcePackageResourceAPTResponse
A package managed by Apt.
deb This property is required. OSPolicyResourcePackageResourceDebResponse
A deb package file.
desiredState This property is required. String
The desired state the agent should maintain for this package.
googet This property is required. OSPolicyResourcePackageResourceGooGetResponse
A package managed by GooGet.
msi This property is required. OSPolicyResourcePackageResourceMSIResponse
An MSI package.
rpm This property is required. OSPolicyResourcePackageResourceRPMResponse
An rpm package file.
yum This property is required. OSPolicyResourcePackageResourceYUMResponse
A package managed by YUM.
zypper This property is required. OSPolicyResourcePackageResourceZypperResponse
A package managed by Zypper.
apt This property is required. OSPolicyResourcePackageResourceAPTResponse
A package managed by Apt.
deb This property is required. OSPolicyResourcePackageResourceDebResponse
A deb package file.
desiredState This property is required. string
The desired state the agent should maintain for this package.
googet This property is required. OSPolicyResourcePackageResourceGooGetResponse
A package managed by GooGet.
msi This property is required. OSPolicyResourcePackageResourceMSIResponse
An MSI package.
rpm This property is required. OSPolicyResourcePackageResourceRPMResponse
An rpm package file.
yum This property is required. OSPolicyResourcePackageResourceYUMResponse
A package managed by YUM.
zypper This property is required. OSPolicyResourcePackageResourceZypperResponse
A package managed by Zypper.
apt This property is required. OSPolicyResourcePackageResourceAPTResponse
A package managed by Apt.
deb This property is required. OSPolicyResourcePackageResourceDebResponse
A deb package file.
desired_state This property is required. str
The desired state the agent should maintain for this package.
googet This property is required. OSPolicyResourcePackageResourceGooGetResponse
A package managed by GooGet.
msi This property is required. OSPolicyResourcePackageResourceMSIResponse
An MSI package.
rpm This property is required. OSPolicyResourcePackageResourceRPMResponse
An rpm package file.
yum This property is required. OSPolicyResourcePackageResourceYUMResponse
A package managed by YUM.
zypper This property is required. OSPolicyResourcePackageResourceZypperResponse
A package managed by Zypper.
apt This property is required. Property Map
A package managed by Apt.
deb This property is required. Property Map
A deb package file.
desiredState This property is required. String
The desired state the agent should maintain for this package.
googet This property is required. Property Map
A package managed by GooGet.
msi This property is required. Property Map
An MSI package.
rpm This property is required. Property Map
An rpm package file.
yum This property is required. Property Map
A package managed by YUM.
zypper This property is required. Property Map
A package managed by Zypper.

OSPolicyResourcePackageResourceYUM
, OSPolicyResourcePackageResourceYUMArgs

Name This property is required. string
Package name.
Name This property is required. string
Package name.
name This property is required. String
Package name.
name This property is required. string
Package name.
name This property is required. str
Package name.
name This property is required. String
Package name.

OSPolicyResourcePackageResourceYUMResponse
, OSPolicyResourcePackageResourceYUMResponseArgs

Name This property is required. string
Package name.
Name This property is required. string
Package name.
name This property is required. String
Package name.
name This property is required. string
Package name.
name This property is required. str
Package name.
name This property is required. String
Package name.

OSPolicyResourcePackageResourceZypper
, OSPolicyResourcePackageResourceZypperArgs

Name This property is required. string
Package name.
Name This property is required. string
Package name.
name This property is required. String
Package name.
name This property is required. string
Package name.
name This property is required. str
Package name.
name This property is required. String
Package name.

OSPolicyResourcePackageResourceZypperResponse
, OSPolicyResourcePackageResourceZypperResponseArgs

Name This property is required. string
Package name.
Name This property is required. string
Package name.
name This property is required. String
Package name.
name This property is required. string
Package name.
name This property is required. str
Package name.
name This property is required. String
Package name.

OSPolicyResourceRepositoryResource
, OSPolicyResourceRepositoryResourceArgs

apt Property Map
An Apt Repository.
goo Property Map
A Goo Repository.
yum Property Map
A Yum Repository.
zypper Property Map
A Zypper Repository.

OSPolicyResourceRepositoryResourceAptRepository
, OSPolicyResourceRepositoryResourceAptRepositoryArgs

ArchiveType This property is required. Pulumi.GoogleNative.OSConfig.V1Alpha.OSPolicyResourceRepositoryResourceAptRepositoryArchiveType
Type of archive files in this repository.
Components This property is required. List<string>
List of components for this repository. Must contain at least one item.
Distribution This property is required. string
Distribution of this repository.
Uri This property is required. string
URI for this repository.
GpgKey string
URI of the key file for this repository. The agent maintains a keyring at /etc/apt/trusted.gpg.d/osconfig_agent_managed.gpg.
ArchiveType This property is required. OSPolicyResourceRepositoryResourceAptRepositoryArchiveType
Type of archive files in this repository.
Components This property is required. []string
List of components for this repository. Must contain at least one item.
Distribution This property is required. string
Distribution of this repository.
Uri This property is required. string
URI for this repository.
GpgKey string
URI of the key file for this repository. The agent maintains a keyring at /etc/apt/trusted.gpg.d/osconfig_agent_managed.gpg.
archiveType This property is required. OSPolicyResourceRepositoryResourceAptRepositoryArchiveType
Type of archive files in this repository.
components This property is required. List<String>
List of components for this repository. Must contain at least one item.
distribution This property is required. String
Distribution of this repository.
uri This property is required. String
URI for this repository.
gpgKey String
URI of the key file for this repository. The agent maintains a keyring at /etc/apt/trusted.gpg.d/osconfig_agent_managed.gpg.
archiveType This property is required. OSPolicyResourceRepositoryResourceAptRepositoryArchiveType
Type of archive files in this repository.
components This property is required. string[]
List of components for this repository. Must contain at least one item.
distribution This property is required. string
Distribution of this repository.
uri This property is required. string
URI for this repository.
gpgKey string
URI of the key file for this repository. The agent maintains a keyring at /etc/apt/trusted.gpg.d/osconfig_agent_managed.gpg.
archive_type This property is required. OSPolicyResourceRepositoryResourceAptRepositoryArchiveType
Type of archive files in this repository.
components This property is required. Sequence[str]
List of components for this repository. Must contain at least one item.
distribution This property is required. str
Distribution of this repository.
uri This property is required. str
URI for this repository.
gpg_key str
URI of the key file for this repository. The agent maintains a keyring at /etc/apt/trusted.gpg.d/osconfig_agent_managed.gpg.
archiveType This property is required. "ARCHIVE_TYPE_UNSPECIFIED" | "DEB" | "DEB_SRC"
Type of archive files in this repository.
components This property is required. List<String>
List of components for this repository. Must contain at least one item.
distribution This property is required. String
Distribution of this repository.
uri This property is required. String
URI for this repository.
gpgKey String
URI of the key file for this repository. The agent maintains a keyring at /etc/apt/trusted.gpg.d/osconfig_agent_managed.gpg.

OSPolicyResourceRepositoryResourceAptRepositoryArchiveType
, OSPolicyResourceRepositoryResourceAptRepositoryArchiveTypeArgs

ArchiveTypeUnspecified
ARCHIVE_TYPE_UNSPECIFIEDUnspecified is invalid.
Deb
DEBDeb indicates that the archive contains binary files.
DebSrc
DEB_SRCDeb-src indicates that the archive contains source files.
OSPolicyResourceRepositoryResourceAptRepositoryArchiveTypeArchiveTypeUnspecified
ARCHIVE_TYPE_UNSPECIFIEDUnspecified is invalid.
OSPolicyResourceRepositoryResourceAptRepositoryArchiveTypeDeb
DEBDeb indicates that the archive contains binary files.
OSPolicyResourceRepositoryResourceAptRepositoryArchiveTypeDebSrc
DEB_SRCDeb-src indicates that the archive contains source files.
ArchiveTypeUnspecified
ARCHIVE_TYPE_UNSPECIFIEDUnspecified is invalid.
Deb
DEBDeb indicates that the archive contains binary files.
DebSrc
DEB_SRCDeb-src indicates that the archive contains source files.
ArchiveTypeUnspecified
ARCHIVE_TYPE_UNSPECIFIEDUnspecified is invalid.
Deb
DEBDeb indicates that the archive contains binary files.
DebSrc
DEB_SRCDeb-src indicates that the archive contains source files.
ARCHIVE_TYPE_UNSPECIFIED
ARCHIVE_TYPE_UNSPECIFIEDUnspecified is invalid.
DEB
DEBDeb indicates that the archive contains binary files.
DEB_SRC
DEB_SRCDeb-src indicates that the archive contains source files.
"ARCHIVE_TYPE_UNSPECIFIED"
ARCHIVE_TYPE_UNSPECIFIEDUnspecified is invalid.
"DEB"
DEBDeb indicates that the archive contains binary files.
"DEB_SRC"
DEB_SRCDeb-src indicates that the archive contains source files.

OSPolicyResourceRepositoryResourceAptRepositoryResponse
, OSPolicyResourceRepositoryResourceAptRepositoryResponseArgs

ArchiveType This property is required. string
Type of archive files in this repository.
Components This property is required. List<string>
List of components for this repository. Must contain at least one item.
Distribution This property is required. string
Distribution of this repository.
GpgKey This property is required. string
URI of the key file for this repository. The agent maintains a keyring at /etc/apt/trusted.gpg.d/osconfig_agent_managed.gpg.
Uri This property is required. string
URI for this repository.
ArchiveType This property is required. string
Type of archive files in this repository.
Components This property is required. []string
List of components for this repository. Must contain at least one item.
Distribution This property is required. string
Distribution of this repository.
GpgKey This property is required. string
URI of the key file for this repository. The agent maintains a keyring at /etc/apt/trusted.gpg.d/osconfig_agent_managed.gpg.
Uri This property is required. string
URI for this repository.
archiveType This property is required. String
Type of archive files in this repository.
components This property is required. List<String>
List of components for this repository. Must contain at least one item.
distribution This property is required. String
Distribution of this repository.
gpgKey This property is required. String
URI of the key file for this repository. The agent maintains a keyring at /etc/apt/trusted.gpg.d/osconfig_agent_managed.gpg.
uri This property is required. String
URI for this repository.
archiveType This property is required. string
Type of archive files in this repository.
components This property is required. string[]
List of components for this repository. Must contain at least one item.
distribution This property is required. string
Distribution of this repository.
gpgKey This property is required. string
URI of the key file for this repository. The agent maintains a keyring at /etc/apt/trusted.gpg.d/osconfig_agent_managed.gpg.
uri This property is required. string
URI for this repository.
archive_type This property is required. str
Type of archive files in this repository.
components This property is required. Sequence[str]
List of components for this repository. Must contain at least one item.
distribution This property is required. str
Distribution of this repository.
gpg_key This property is required. str
URI of the key file for this repository. The agent maintains a keyring at /etc/apt/trusted.gpg.d/osconfig_agent_managed.gpg.
uri This property is required. str
URI for this repository.
archiveType This property is required. String
Type of archive files in this repository.
components This property is required. List<String>
List of components for this repository. Must contain at least one item.
distribution This property is required. String
Distribution of this repository.
gpgKey This property is required. String
URI of the key file for this repository. The agent maintains a keyring at /etc/apt/trusted.gpg.d/osconfig_agent_managed.gpg.
uri This property is required. String
URI for this repository.

OSPolicyResourceRepositoryResourceGooRepository
, OSPolicyResourceRepositoryResourceGooRepositoryArgs

Name This property is required. string
The name of the repository.
Url This property is required. string
The url of the repository.
Name This property is required. string
The name of the repository.
Url This property is required. string
The url of the repository.
name This property is required. String
The name of the repository.
url This property is required. String
The url of the repository.
name This property is required. string
The name of the repository.
url This property is required. string
The url of the repository.
name This property is required. str
The name of the repository.
url This property is required. str
The url of the repository.
name This property is required. String
The name of the repository.
url This property is required. String
The url of the repository.

OSPolicyResourceRepositoryResourceGooRepositoryResponse
, OSPolicyResourceRepositoryResourceGooRepositoryResponseArgs

Name This property is required. string
The name of the repository.
Url This property is required. string
The url of the repository.
Name This property is required. string
The name of the repository.
Url This property is required. string
The url of the repository.
name This property is required. String
The name of the repository.
url This property is required. String
The url of the repository.
name This property is required. string
The name of the repository.
url This property is required. string
The url of the repository.
name This property is required. str
The name of the repository.
url This property is required. str
The url of the repository.
name This property is required. String
The name of the repository.
url This property is required. String
The url of the repository.

OSPolicyResourceRepositoryResourceResponse
, OSPolicyResourceRepositoryResourceResponseArgs

Apt This property is required. OSPolicyResourceRepositoryResourceAptRepositoryResponse
An Apt Repository.
Goo This property is required. OSPolicyResourceRepositoryResourceGooRepositoryResponse
A Goo Repository.
Yum This property is required. OSPolicyResourceRepositoryResourceYumRepositoryResponse
A Yum Repository.
Zypper This property is required. OSPolicyResourceRepositoryResourceZypperRepositoryResponse
A Zypper Repository.
apt This property is required. OSPolicyResourceRepositoryResourceAptRepositoryResponse
An Apt Repository.
goo This property is required. OSPolicyResourceRepositoryResourceGooRepositoryResponse
A Goo Repository.
yum This property is required. OSPolicyResourceRepositoryResourceYumRepositoryResponse
A Yum Repository.
zypper This property is required. OSPolicyResourceRepositoryResourceZypperRepositoryResponse
A Zypper Repository.
apt This property is required. OSPolicyResourceRepositoryResourceAptRepositoryResponse
An Apt Repository.
goo This property is required. OSPolicyResourceRepositoryResourceGooRepositoryResponse
A Goo Repository.
yum This property is required. OSPolicyResourceRepositoryResourceYumRepositoryResponse
A Yum Repository.
zypper This property is required. OSPolicyResourceRepositoryResourceZypperRepositoryResponse
A Zypper Repository.
apt This property is required. OSPolicyResourceRepositoryResourceAptRepositoryResponse
An Apt Repository.
goo This property is required. OSPolicyResourceRepositoryResourceGooRepositoryResponse
A Goo Repository.
yum This property is required. OSPolicyResourceRepositoryResourceYumRepositoryResponse
A Yum Repository.
zypper This property is required. OSPolicyResourceRepositoryResourceZypperRepositoryResponse
A Zypper Repository.
apt This property is required. Property Map
An Apt Repository.
goo This property is required. Property Map
A Goo Repository.
yum This property is required. Property Map
A Yum Repository.
zypper This property is required. Property Map
A Zypper Repository.

OSPolicyResourceRepositoryResourceYumRepository
, OSPolicyResourceRepositoryResourceYumRepositoryArgs

BaseUrl This property is required. string
The location of the repository directory.
Id This property is required. string
A one word, unique name for this repository. This is the repo id in the yum config file and also the display_name if display_name is omitted. This id is also used as the unique identifier when checking for resource conflicts.
DisplayName string
The display name of the repository.
GpgKeys List<string>
URIs of GPG keys.
BaseUrl This property is required. string
The location of the repository directory.
Id This property is required. string
A one word, unique name for this repository. This is the repo id in the yum config file and also the display_name if display_name is omitted. This id is also used as the unique identifier when checking for resource conflicts.
DisplayName string
The display name of the repository.
GpgKeys []string
URIs of GPG keys.
baseUrl This property is required. String
The location of the repository directory.
id This property is required. String
A one word, unique name for this repository. This is the repo id in the yum config file and also the display_name if display_name is omitted. This id is also used as the unique identifier when checking for resource conflicts.
displayName String
The display name of the repository.
gpgKeys List<String>
URIs of GPG keys.
baseUrl This property is required. string
The location of the repository directory.
id This property is required. string
A one word, unique name for this repository. This is the repo id in the yum config file and also the display_name if display_name is omitted. This id is also used as the unique identifier when checking for resource conflicts.
displayName string
The display name of the repository.
gpgKeys string[]
URIs of GPG keys.
base_url This property is required. str
The location of the repository directory.
id This property is required. str
A one word, unique name for this repository. This is the repo id in the yum config file and also the display_name if display_name is omitted. This id is also used as the unique identifier when checking for resource conflicts.
display_name str
The display name of the repository.
gpg_keys Sequence[str]
URIs of GPG keys.
baseUrl This property is required. String
The location of the repository directory.
id This property is required. String
A one word, unique name for this repository. This is the repo id in the yum config file and also the display_name if display_name is omitted. This id is also used as the unique identifier when checking for resource conflicts.
displayName String
The display name of the repository.
gpgKeys List<String>
URIs of GPG keys.

OSPolicyResourceRepositoryResourceYumRepositoryResponse
, OSPolicyResourceRepositoryResourceYumRepositoryResponseArgs

BaseUrl This property is required. string
The location of the repository directory.
DisplayName This property is required. string
The display name of the repository.
GpgKeys This property is required. List<string>
URIs of GPG keys.
BaseUrl This property is required. string
The location of the repository directory.
DisplayName This property is required. string
The display name of the repository.
GpgKeys This property is required. []string
URIs of GPG keys.
baseUrl This property is required. String
The location of the repository directory.
displayName This property is required. String
The display name of the repository.
gpgKeys This property is required. List<String>
URIs of GPG keys.
baseUrl This property is required. string
The location of the repository directory.
displayName This property is required. string
The display name of the repository.
gpgKeys This property is required. string[]
URIs of GPG keys.
base_url This property is required. str
The location of the repository directory.
display_name This property is required. str
The display name of the repository.
gpg_keys This property is required. Sequence[str]
URIs of GPG keys.
baseUrl This property is required. String
The location of the repository directory.
displayName This property is required. String
The display name of the repository.
gpgKeys This property is required. List<String>
URIs of GPG keys.

OSPolicyResourceRepositoryResourceZypperRepository
, OSPolicyResourceRepositoryResourceZypperRepositoryArgs

BaseUrl This property is required. string
The location of the repository directory.
Id This property is required. string
A one word, unique name for this repository. This is the repo id in the zypper config file and also the display_name if display_name is omitted. This id is also used as the unique identifier when checking for GuestPolicy conflicts.
DisplayName string
The display name of the repository.
GpgKeys List<string>
URIs of GPG keys.
BaseUrl This property is required. string
The location of the repository directory.
Id This property is required. string
A one word, unique name for this repository. This is the repo id in the zypper config file and also the display_name if display_name is omitted. This id is also used as the unique identifier when checking for GuestPolicy conflicts.
DisplayName string
The display name of the repository.
GpgKeys []string
URIs of GPG keys.
baseUrl This property is required. String
The location of the repository directory.
id This property is required. String
A one word, unique name for this repository. This is the repo id in the zypper config file and also the display_name if display_name is omitted. This id is also used as the unique identifier when checking for GuestPolicy conflicts.
displayName String
The display name of the repository.
gpgKeys List<String>
URIs of GPG keys.
baseUrl This property is required. string
The location of the repository directory.
id This property is required. string
A one word, unique name for this repository. This is the repo id in the zypper config file and also the display_name if display_name is omitted. This id is also used as the unique identifier when checking for GuestPolicy conflicts.
displayName string
The display name of the repository.
gpgKeys string[]
URIs of GPG keys.
base_url This property is required. str
The location of the repository directory.
id This property is required. str
A one word, unique name for this repository. This is the repo id in the zypper config file and also the display_name if display_name is omitted. This id is also used as the unique identifier when checking for GuestPolicy conflicts.
display_name str
The display name of the repository.
gpg_keys Sequence[str]
URIs of GPG keys.
baseUrl This property is required. String
The location of the repository directory.
id This property is required. String
A one word, unique name for this repository. This is the repo id in the zypper config file and also the display_name if display_name is omitted. This id is also used as the unique identifier when checking for GuestPolicy conflicts.
displayName String
The display name of the repository.
gpgKeys List<String>
URIs of GPG keys.

OSPolicyResourceRepositoryResourceZypperRepositoryResponse
, OSPolicyResourceRepositoryResourceZypperRepositoryResponseArgs

BaseUrl This property is required. string
The location of the repository directory.
DisplayName This property is required. string
The display name of the repository.
GpgKeys This property is required. List<string>
URIs of GPG keys.
BaseUrl This property is required. string
The location of the repository directory.
DisplayName This property is required. string
The display name of the repository.
GpgKeys This property is required. []string
URIs of GPG keys.
baseUrl This property is required. String
The location of the repository directory.
displayName This property is required. String
The display name of the repository.
gpgKeys This property is required. List<String>
URIs of GPG keys.
baseUrl This property is required. string
The location of the repository directory.
displayName This property is required. string
The display name of the repository.
gpgKeys This property is required. string[]
URIs of GPG keys.
base_url This property is required. str
The location of the repository directory.
display_name This property is required. str
The display name of the repository.
gpg_keys This property is required. Sequence[str]
URIs of GPG keys.
baseUrl This property is required. String
The location of the repository directory.
displayName This property is required. String
The display name of the repository.
gpgKeys This property is required. List<String>
URIs of GPG keys.

OSPolicyResourceResponse
, OSPolicyResourceResponseArgs

Exec This property is required. OSPolicyResourceExecResourceResponse
Exec resource
File This property is required. OSPolicyResourceFileResourceResponse
File resource
Pkg This property is required. OSPolicyResourcePackageResourceResponse
Package resource
Repository This property is required. OSPolicyResourceRepositoryResourceResponse
Package repository resource
exec This property is required. OSPolicyResourceExecResourceResponse
Exec resource
file This property is required. OSPolicyResourceFileResourceResponse
File resource
pkg This property is required. OSPolicyResourcePackageResourceResponse
Package resource
repository This property is required. OSPolicyResourceRepositoryResourceResponse
Package repository resource
exec This property is required. OSPolicyResourceExecResourceResponse
Exec resource
file This property is required. OSPolicyResourceFileResourceResponse
File resource
pkg This property is required. OSPolicyResourcePackageResourceResponse
Package resource
repository This property is required. OSPolicyResourceRepositoryResourceResponse
Package repository resource
exec_ This property is required. OSPolicyResourceExecResourceResponse
Exec resource
file This property is required. OSPolicyResourceFileResourceResponse
File resource
pkg This property is required. OSPolicyResourcePackageResourceResponse
Package resource
repository This property is required. OSPolicyResourceRepositoryResourceResponse
Package repository resource
exec This property is required. Property Map
Exec resource
file This property is required. Property Map
File resource
pkg This property is required. Property Map
Package resource
repository This property is required. Property Map
Package repository resource

OSPolicyResponse
, OSPolicyResponseArgs

AllowNoResourceGroupMatch This property is required. bool
This flag determines the OS policy compliance status when none of the resource groups within the policy are applicable for a VM. Set this value to true if the policy needs to be reported as compliant even if the policy has nothing to validate or enforce.
Description This property is required. string
Policy description. Length of the description is limited to 1024 characters.
Mode This property is required. string
Policy mode
ResourceGroups This property is required. List<Pulumi.GoogleNative.OSConfig.V1Alpha.Inputs.OSPolicyResourceGroupResponse>
List of resource groups for the policy. For a particular VM, resource groups are evaluated in the order specified and the first resource group that is applicable is selected and the rest are ignored. If none of the resource groups are applicable for a VM, the VM is considered to be non-compliant w.r.t this policy. This behavior can be toggled by the flag allow_no_resource_group_match
AllowNoResourceGroupMatch This property is required. bool
This flag determines the OS policy compliance status when none of the resource groups within the policy are applicable for a VM. Set this value to true if the policy needs to be reported as compliant even if the policy has nothing to validate or enforce.
Description This property is required. string
Policy description. Length of the description is limited to 1024 characters.
Mode This property is required. string
Policy mode
ResourceGroups This property is required. []OSPolicyResourceGroupResponse
List of resource groups for the policy. For a particular VM, resource groups are evaluated in the order specified and the first resource group that is applicable is selected and the rest are ignored. If none of the resource groups are applicable for a VM, the VM is considered to be non-compliant w.r.t this policy. This behavior can be toggled by the flag allow_no_resource_group_match
allowNoResourceGroupMatch This property is required. Boolean
This flag determines the OS policy compliance status when none of the resource groups within the policy are applicable for a VM. Set this value to true if the policy needs to be reported as compliant even if the policy has nothing to validate or enforce.
description This property is required. String
Policy description. Length of the description is limited to 1024 characters.
mode This property is required. String
Policy mode
resourceGroups This property is required. List<OSPolicyResourceGroupResponse>
List of resource groups for the policy. For a particular VM, resource groups are evaluated in the order specified and the first resource group that is applicable is selected and the rest are ignored. If none of the resource groups are applicable for a VM, the VM is considered to be non-compliant w.r.t this policy. This behavior can be toggled by the flag allow_no_resource_group_match
allowNoResourceGroupMatch This property is required. boolean
This flag determines the OS policy compliance status when none of the resource groups within the policy are applicable for a VM. Set this value to true if the policy needs to be reported as compliant even if the policy has nothing to validate or enforce.
description This property is required. string
Policy description. Length of the description is limited to 1024 characters.
mode This property is required. string
Policy mode
resourceGroups This property is required. OSPolicyResourceGroupResponse[]
List of resource groups for the policy. For a particular VM, resource groups are evaluated in the order specified and the first resource group that is applicable is selected and the rest are ignored. If none of the resource groups are applicable for a VM, the VM is considered to be non-compliant w.r.t this policy. This behavior can be toggled by the flag allow_no_resource_group_match
allow_no_resource_group_match This property is required. bool
This flag determines the OS policy compliance status when none of the resource groups within the policy are applicable for a VM. Set this value to true if the policy needs to be reported as compliant even if the policy has nothing to validate or enforce.
description This property is required. str
Policy description. Length of the description is limited to 1024 characters.
mode This property is required. str
Policy mode
resource_groups This property is required. Sequence[OSPolicyResourceGroupResponse]
List of resource groups for the policy. For a particular VM, resource groups are evaluated in the order specified and the first resource group that is applicable is selected and the rest are ignored. If none of the resource groups are applicable for a VM, the VM is considered to be non-compliant w.r.t this policy. This behavior can be toggled by the flag allow_no_resource_group_match
allowNoResourceGroupMatch This property is required. Boolean
This flag determines the OS policy compliance status when none of the resource groups within the policy are applicable for a VM. Set this value to true if the policy needs to be reported as compliant even if the policy has nothing to validate or enforce.
description This property is required. String
Policy description. Length of the description is limited to 1024 characters.
mode This property is required. String
Policy mode
resourceGroups This property is required. List<Property Map>
List of resource groups for the policy. For a particular VM, resource groups are evaluated in the order specified and the first resource group that is applicable is selected and the rest are ignored. If none of the resource groups are applicable for a VM, the VM is considered to be non-compliant w.r.t this policy. This behavior can be toggled by the flag allow_no_resource_group_match

Package Details

Repository
Google Cloud Native pulumi/pulumi-google-native
License
Apache-2.0

Google Cloud Native is in preview. Google Cloud Classic is fully supported.

Google Cloud Native v0.32.0 published on Wednesday, Nov 29, 2023 by Pulumi