1. Packages
  2. Google Cloud (GCP) Classic
  3. API Docs
  4. gkehub
  5. Fleet
Google Cloud Classic v7.29.0 published on Wednesday, Jun 26, 2024 by Pulumi

gcp.gkehub.Fleet

Explore with Pulumi AI

gcp logo
Google Cloud Classic v7.29.0 published on Wednesday, Jun 26, 2024 by Pulumi

    Fleet contains information about a group of clusters.

    To get more information about Fleet, see:

    Example Usage

    Gkehub Fleet Basic

    import * as pulumi from "@pulumi/pulumi";
    import * as gcp from "@pulumi/gcp";
    
    const _default = new gcp.gkehub.Fleet("default", {
        displayName: "my production fleet",
        defaultClusterConfig: {
            securityPostureConfig: {
                mode: "DISABLED",
                vulnerabilityMode: "VULNERABILITY_DISABLED",
            },
        },
    });
    
    import pulumi
    import pulumi_gcp as gcp
    
    default = gcp.gkehub.Fleet("default",
        display_name="my production fleet",
        default_cluster_config=gcp.gkehub.FleetDefaultClusterConfigArgs(
            security_posture_config=gcp.gkehub.FleetDefaultClusterConfigSecurityPostureConfigArgs(
                mode="DISABLED",
                vulnerability_mode="VULNERABILITY_DISABLED",
            ),
        ))
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-gcp/sdk/v7/go/gcp/gkehub"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := gkehub.NewFleet(ctx, "default", &gkehub.FleetArgs{
    			DisplayName: pulumi.String("my production fleet"),
    			DefaultClusterConfig: &gkehub.FleetDefaultClusterConfigArgs{
    				SecurityPostureConfig: &gkehub.FleetDefaultClusterConfigSecurityPostureConfigArgs{
    					Mode:              pulumi.String("DISABLED"),
    					VulnerabilityMode: pulumi.String("VULNERABILITY_DISABLED"),
    				},
    			},
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Gcp = Pulumi.Gcp;
    
    return await Deployment.RunAsync(() => 
    {
        var @default = new Gcp.GkeHub.Fleet("default", new()
        {
            DisplayName = "my production fleet",
            DefaultClusterConfig = new Gcp.GkeHub.Inputs.FleetDefaultClusterConfigArgs
            {
                SecurityPostureConfig = new Gcp.GkeHub.Inputs.FleetDefaultClusterConfigSecurityPostureConfigArgs
                {
                    Mode = "DISABLED",
                    VulnerabilityMode = "VULNERABILITY_DISABLED",
                },
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.gcp.gkehub.Fleet;
    import com.pulumi.gcp.gkehub.FleetArgs;
    import com.pulumi.gcp.gkehub.inputs.FleetDefaultClusterConfigArgs;
    import com.pulumi.gcp.gkehub.inputs.FleetDefaultClusterConfigSecurityPostureConfigArgs;
    import java.util.List;
    import java.util.ArrayList;
    import java.util.Map;
    import java.io.File;
    import java.nio.file.Files;
    import java.nio.file.Paths;
    
    public class App {
        public static void main(String[] args) {
            Pulumi.run(App::stack);
        }
    
        public static void stack(Context ctx) {
            var default_ = new Fleet("default", FleetArgs.builder()
                .displayName("my production fleet")
                .defaultClusterConfig(FleetDefaultClusterConfigArgs.builder()
                    .securityPostureConfig(FleetDefaultClusterConfigSecurityPostureConfigArgs.builder()
                        .mode("DISABLED")
                        .vulnerabilityMode("VULNERABILITY_DISABLED")
                        .build())
                    .build())
                .build());
    
        }
    }
    
    resources:
      default:
        type: gcp:gkehub:Fleet
        properties:
          displayName: my production fleet
          defaultClusterConfig:
            securityPostureConfig:
              mode: DISABLED
              vulnerabilityMode: VULNERABILITY_DISABLED
    

    Create Fleet Resource

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

    Constructor syntax

    new Fleet(name: string, args?: FleetArgs, opts?: CustomResourceOptions);
    @overload
    def Fleet(resource_name: str,
              args: Optional[FleetArgs] = None,
              opts: Optional[ResourceOptions] = None)
    
    @overload
    def Fleet(resource_name: str,
              opts: Optional[ResourceOptions] = None,
              default_cluster_config: Optional[FleetDefaultClusterConfigArgs] = None,
              display_name: Optional[str] = None,
              project: Optional[str] = None)
    func NewFleet(ctx *Context, name string, args *FleetArgs, opts ...ResourceOption) (*Fleet, error)
    public Fleet(string name, FleetArgs? args = null, CustomResourceOptions? opts = null)
    public Fleet(String name, FleetArgs args)
    public Fleet(String name, FleetArgs args, CustomResourceOptions options)
    
    type: gcp:gkehub:Fleet
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name string
    The unique name of the resource.
    args FleetArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args FleetArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args FleetArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args FleetArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args FleetArgs
    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 fleetResource = new Gcp.GkeHub.Fleet("fleetResource", new()
    {
        DefaultClusterConfig = new Gcp.GkeHub.Inputs.FleetDefaultClusterConfigArgs
        {
            BinaryAuthorizationConfig = new Gcp.GkeHub.Inputs.FleetDefaultClusterConfigBinaryAuthorizationConfigArgs
            {
                EvaluationMode = "string",
                PolicyBindings = new[]
                {
                    new Gcp.GkeHub.Inputs.FleetDefaultClusterConfigBinaryAuthorizationConfigPolicyBindingArgs
                    {
                        Name = "string",
                    },
                },
            },
            SecurityPostureConfig = new Gcp.GkeHub.Inputs.FleetDefaultClusterConfigSecurityPostureConfigArgs
            {
                Mode = "string",
                VulnerabilityMode = "string",
            },
        },
        DisplayName = "string",
        Project = "string",
    });
    
    example, err := gkehub.NewFleet(ctx, "fleetResource", &gkehub.FleetArgs{
    	DefaultClusterConfig: &gkehub.FleetDefaultClusterConfigArgs{
    		BinaryAuthorizationConfig: &gkehub.FleetDefaultClusterConfigBinaryAuthorizationConfigArgs{
    			EvaluationMode: pulumi.String("string"),
    			PolicyBindings: gkehub.FleetDefaultClusterConfigBinaryAuthorizationConfigPolicyBindingArray{
    				&gkehub.FleetDefaultClusterConfigBinaryAuthorizationConfigPolicyBindingArgs{
    					Name: pulumi.String("string"),
    				},
    			},
    		},
    		SecurityPostureConfig: &gkehub.FleetDefaultClusterConfigSecurityPostureConfigArgs{
    			Mode:              pulumi.String("string"),
    			VulnerabilityMode: pulumi.String("string"),
    		},
    	},
    	DisplayName: pulumi.String("string"),
    	Project:     pulumi.String("string"),
    })
    
    var fleetResource = new Fleet("fleetResource", FleetArgs.builder()
        .defaultClusterConfig(FleetDefaultClusterConfigArgs.builder()
            .binaryAuthorizationConfig(FleetDefaultClusterConfigBinaryAuthorizationConfigArgs.builder()
                .evaluationMode("string")
                .policyBindings(FleetDefaultClusterConfigBinaryAuthorizationConfigPolicyBindingArgs.builder()
                    .name("string")
                    .build())
                .build())
            .securityPostureConfig(FleetDefaultClusterConfigSecurityPostureConfigArgs.builder()
                .mode("string")
                .vulnerabilityMode("string")
                .build())
            .build())
        .displayName("string")
        .project("string")
        .build());
    
    fleet_resource = gcp.gkehub.Fleet("fleetResource",
        default_cluster_config=gcp.gkehub.FleetDefaultClusterConfigArgs(
            binary_authorization_config=gcp.gkehub.FleetDefaultClusterConfigBinaryAuthorizationConfigArgs(
                evaluation_mode="string",
                policy_bindings=[gcp.gkehub.FleetDefaultClusterConfigBinaryAuthorizationConfigPolicyBindingArgs(
                    name="string",
                )],
            ),
            security_posture_config=gcp.gkehub.FleetDefaultClusterConfigSecurityPostureConfigArgs(
                mode="string",
                vulnerability_mode="string",
            ),
        ),
        display_name="string",
        project="string")
    
    const fleetResource = new gcp.gkehub.Fleet("fleetResource", {
        defaultClusterConfig: {
            binaryAuthorizationConfig: {
                evaluationMode: "string",
                policyBindings: [{
                    name: "string",
                }],
            },
            securityPostureConfig: {
                mode: "string",
                vulnerabilityMode: "string",
            },
        },
        displayName: "string",
        project: "string",
    });
    
    type: gcp:gkehub:Fleet
    properties:
        defaultClusterConfig:
            binaryAuthorizationConfig:
                evaluationMode: string
                policyBindings:
                    - name: string
            securityPostureConfig:
                mode: string
                vulnerabilityMode: string
        displayName: string
        project: string
    

    Fleet Resource Properties

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

    Inputs

    The Fleet resource accepts the following input properties:

    DefaultClusterConfig FleetDefaultClusterConfig
    The default cluster configurations to apply across the fleet. Structure is documented below.
    DisplayName string
    A user-assigned display name of the Fleet. When present, it must be between 4 to 30 characters. Allowed characters are: lowercase and uppercase letters, numbers, hyphen, single-quote, double-quote, space, and exclamation point.
    Project string
    The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
    DefaultClusterConfig FleetDefaultClusterConfigArgs
    The default cluster configurations to apply across the fleet. Structure is documented below.
    DisplayName string
    A user-assigned display name of the Fleet. When present, it must be between 4 to 30 characters. Allowed characters are: lowercase and uppercase letters, numbers, hyphen, single-quote, double-quote, space, and exclamation point.
    Project string
    The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
    defaultClusterConfig FleetDefaultClusterConfig
    The default cluster configurations to apply across the fleet. Structure is documented below.
    displayName String
    A user-assigned display name of the Fleet. When present, it must be between 4 to 30 characters. Allowed characters are: lowercase and uppercase letters, numbers, hyphen, single-quote, double-quote, space, and exclamation point.
    project String
    The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
    defaultClusterConfig FleetDefaultClusterConfig
    The default cluster configurations to apply across the fleet. Structure is documented below.
    displayName string
    A user-assigned display name of the Fleet. When present, it must be between 4 to 30 characters. Allowed characters are: lowercase and uppercase letters, numbers, hyphen, single-quote, double-quote, space, and exclamation point.
    project string
    The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
    default_cluster_config FleetDefaultClusterConfigArgs
    The default cluster configurations to apply across the fleet. Structure is documented below.
    display_name str
    A user-assigned display name of the Fleet. When present, it must be between 4 to 30 characters. Allowed characters are: lowercase and uppercase letters, numbers, hyphen, single-quote, double-quote, space, and exclamation point.
    project str
    The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
    defaultClusterConfig Property Map
    The default cluster configurations to apply across the fleet. Structure is documented below.
    displayName String
    A user-assigned display name of the Fleet. When present, it must be between 4 to 30 characters. Allowed characters are: lowercase and uppercase letters, numbers, hyphen, single-quote, double-quote, space, and exclamation point.
    project String
    The ID of the project in which the resource belongs. If it is not provided, the provider project is used.

    Outputs

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

    CreateTime string
    The time the fleet was created, in RFC3339 text format.
    DeleteTime string
    The time the fleet was deleted, in RFC3339 text format.
    Id string
    The provider-assigned unique ID for this managed resource.
    States List<FleetState>
    The state of the fleet resource. Structure is documented below.
    Uid string
    Google-generated UUID for this resource. This is unique across all Fleet resources. If a Fleet resource is deleted and another resource with the same name is created, it gets a different uid.
    UpdateTime string
    The time the fleet was last updated, in RFC3339 text format.
    CreateTime string
    The time the fleet was created, in RFC3339 text format.
    DeleteTime string
    The time the fleet was deleted, in RFC3339 text format.
    Id string
    The provider-assigned unique ID for this managed resource.
    States []FleetStateType
    The state of the fleet resource. Structure is documented below.
    Uid string
    Google-generated UUID for this resource. This is unique across all Fleet resources. If a Fleet resource is deleted and another resource with the same name is created, it gets a different uid.
    UpdateTime string
    The time the fleet was last updated, in RFC3339 text format.
    createTime String
    The time the fleet was created, in RFC3339 text format.
    deleteTime String
    The time the fleet was deleted, in RFC3339 text format.
    id String
    The provider-assigned unique ID for this managed resource.
    states List<FleetState>
    The state of the fleet resource. Structure is documented below.
    uid String
    Google-generated UUID for this resource. This is unique across all Fleet resources. If a Fleet resource is deleted and another resource with the same name is created, it gets a different uid.
    updateTime String
    The time the fleet was last updated, in RFC3339 text format.
    createTime string
    The time the fleet was created, in RFC3339 text format.
    deleteTime string
    The time the fleet was deleted, in RFC3339 text format.
    id string
    The provider-assigned unique ID for this managed resource.
    states FleetState[]
    The state of the fleet resource. Structure is documented below.
    uid string
    Google-generated UUID for this resource. This is unique across all Fleet resources. If a Fleet resource is deleted and another resource with the same name is created, it gets a different uid.
    updateTime string
    The time the fleet was last updated, in RFC3339 text format.
    create_time str
    The time the fleet was created, in RFC3339 text format.
    delete_time str
    The time the fleet was deleted, in RFC3339 text format.
    id str
    The provider-assigned unique ID for this managed resource.
    states Sequence[FleetState]
    The state of the fleet resource. Structure is documented below.
    uid str
    Google-generated UUID for this resource. This is unique across all Fleet resources. If a Fleet resource is deleted and another resource with the same name is created, it gets a different uid.
    update_time str
    The time the fleet was last updated, in RFC3339 text format.
    createTime String
    The time the fleet was created, in RFC3339 text format.
    deleteTime String
    The time the fleet was deleted, in RFC3339 text format.
    id String
    The provider-assigned unique ID for this managed resource.
    states List<Property Map>
    The state of the fleet resource. Structure is documented below.
    uid String
    Google-generated UUID for this resource. This is unique across all Fleet resources. If a Fleet resource is deleted and another resource with the same name is created, it gets a different uid.
    updateTime String
    The time the fleet was last updated, in RFC3339 text format.

    Look up Existing Fleet Resource

    Get an existing Fleet resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

    public static get(name: string, id: Input<ID>, state?: FleetState, opts?: CustomResourceOptions): Fleet
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            create_time: Optional[str] = None,
            default_cluster_config: Optional[FleetDefaultClusterConfigArgs] = None,
            delete_time: Optional[str] = None,
            display_name: Optional[str] = None,
            project: Optional[str] = None,
            states: Optional[Sequence[FleetStateArgs]] = None,
            uid: Optional[str] = None,
            update_time: Optional[str] = None) -> Fleet
    func GetFleet(ctx *Context, name string, id IDInput, state *FleetState, opts ...ResourceOption) (*Fleet, error)
    public static Fleet Get(string name, Input<string> id, FleetState? state, CustomResourceOptions? opts = null)
    public static Fleet get(String name, Output<String> id, FleetState state, CustomResourceOptions options)
    Resource lookup is not supported in YAML
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    CreateTime string
    The time the fleet was created, in RFC3339 text format.
    DefaultClusterConfig FleetDefaultClusterConfig
    The default cluster configurations to apply across the fleet. Structure is documented below.
    DeleteTime string
    The time the fleet was deleted, in RFC3339 text format.
    DisplayName string
    A user-assigned display name of the Fleet. When present, it must be between 4 to 30 characters. Allowed characters are: lowercase and uppercase letters, numbers, hyphen, single-quote, double-quote, space, and exclamation point.
    Project string
    The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
    States List<FleetState>
    The state of the fleet resource. Structure is documented below.
    Uid string
    Google-generated UUID for this resource. This is unique across all Fleet resources. If a Fleet resource is deleted and another resource with the same name is created, it gets a different uid.
    UpdateTime string
    The time the fleet was last updated, in RFC3339 text format.
    CreateTime string
    The time the fleet was created, in RFC3339 text format.
    DefaultClusterConfig FleetDefaultClusterConfigArgs
    The default cluster configurations to apply across the fleet. Structure is documented below.
    DeleteTime string
    The time the fleet was deleted, in RFC3339 text format.
    DisplayName string
    A user-assigned display name of the Fleet. When present, it must be between 4 to 30 characters. Allowed characters are: lowercase and uppercase letters, numbers, hyphen, single-quote, double-quote, space, and exclamation point.
    Project string
    The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
    States []FleetStateTypeArgs
    The state of the fleet resource. Structure is documented below.
    Uid string
    Google-generated UUID for this resource. This is unique across all Fleet resources. If a Fleet resource is deleted and another resource with the same name is created, it gets a different uid.
    UpdateTime string
    The time the fleet was last updated, in RFC3339 text format.
    createTime String
    The time the fleet was created, in RFC3339 text format.
    defaultClusterConfig FleetDefaultClusterConfig
    The default cluster configurations to apply across the fleet. Structure is documented below.
    deleteTime String
    The time the fleet was deleted, in RFC3339 text format.
    displayName String
    A user-assigned display name of the Fleet. When present, it must be between 4 to 30 characters. Allowed characters are: lowercase and uppercase letters, numbers, hyphen, single-quote, double-quote, space, and exclamation point.
    project String
    The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
    states List<FleetState>
    The state of the fleet resource. Structure is documented below.
    uid String
    Google-generated UUID for this resource. This is unique across all Fleet resources. If a Fleet resource is deleted and another resource with the same name is created, it gets a different uid.
    updateTime String
    The time the fleet was last updated, in RFC3339 text format.
    createTime string
    The time the fleet was created, in RFC3339 text format.
    defaultClusterConfig FleetDefaultClusterConfig
    The default cluster configurations to apply across the fleet. Structure is documented below.
    deleteTime string
    The time the fleet was deleted, in RFC3339 text format.
    displayName string
    A user-assigned display name of the Fleet. When present, it must be between 4 to 30 characters. Allowed characters are: lowercase and uppercase letters, numbers, hyphen, single-quote, double-quote, space, and exclamation point.
    project string
    The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
    states FleetState[]
    The state of the fleet resource. Structure is documented below.
    uid string
    Google-generated UUID for this resource. This is unique across all Fleet resources. If a Fleet resource is deleted and another resource with the same name is created, it gets a different uid.
    updateTime string
    The time the fleet was last updated, in RFC3339 text format.
    create_time str
    The time the fleet was created, in RFC3339 text format.
    default_cluster_config FleetDefaultClusterConfigArgs
    The default cluster configurations to apply across the fleet. Structure is documented below.
    delete_time str
    The time the fleet was deleted, in RFC3339 text format.
    display_name str
    A user-assigned display name of the Fleet. When present, it must be between 4 to 30 characters. Allowed characters are: lowercase and uppercase letters, numbers, hyphen, single-quote, double-quote, space, and exclamation point.
    project str
    The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
    states Sequence[FleetStateArgs]
    The state of the fleet resource. Structure is documented below.
    uid str
    Google-generated UUID for this resource. This is unique across all Fleet resources. If a Fleet resource is deleted and another resource with the same name is created, it gets a different uid.
    update_time str
    The time the fleet was last updated, in RFC3339 text format.
    createTime String
    The time the fleet was created, in RFC3339 text format.
    defaultClusterConfig Property Map
    The default cluster configurations to apply across the fleet. Structure is documented below.
    deleteTime String
    The time the fleet was deleted, in RFC3339 text format.
    displayName String
    A user-assigned display name of the Fleet. When present, it must be between 4 to 30 characters. Allowed characters are: lowercase and uppercase letters, numbers, hyphen, single-quote, double-quote, space, and exclamation point.
    project String
    The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
    states List<Property Map>
    The state of the fleet resource. Structure is documented below.
    uid String
    Google-generated UUID for this resource. This is unique across all Fleet resources. If a Fleet resource is deleted and another resource with the same name is created, it gets a different uid.
    updateTime String
    The time the fleet was last updated, in RFC3339 text format.

    Supporting Types

    FleetDefaultClusterConfig, FleetDefaultClusterConfigArgs

    BinaryAuthorizationConfig FleetDefaultClusterConfigBinaryAuthorizationConfig
    Enable/Disable binary authorization features for the cluster. Structure is documented below.
    SecurityPostureConfig FleetDefaultClusterConfigSecurityPostureConfig
    Enable/Disable Security Posture features for the cluster. Structure is documented below.
    BinaryAuthorizationConfig FleetDefaultClusterConfigBinaryAuthorizationConfig
    Enable/Disable binary authorization features for the cluster. Structure is documented below.
    SecurityPostureConfig FleetDefaultClusterConfigSecurityPostureConfig
    Enable/Disable Security Posture features for the cluster. Structure is documented below.
    binaryAuthorizationConfig FleetDefaultClusterConfigBinaryAuthorizationConfig
    Enable/Disable binary authorization features for the cluster. Structure is documented below.
    securityPostureConfig FleetDefaultClusterConfigSecurityPostureConfig
    Enable/Disable Security Posture features for the cluster. Structure is documented below.
    binaryAuthorizationConfig FleetDefaultClusterConfigBinaryAuthorizationConfig
    Enable/Disable binary authorization features for the cluster. Structure is documented below.
    securityPostureConfig FleetDefaultClusterConfigSecurityPostureConfig
    Enable/Disable Security Posture features for the cluster. Structure is documented below.
    binary_authorization_config FleetDefaultClusterConfigBinaryAuthorizationConfig
    Enable/Disable binary authorization features for the cluster. Structure is documented below.
    security_posture_config FleetDefaultClusterConfigSecurityPostureConfig
    Enable/Disable Security Posture features for the cluster. Structure is documented below.
    binaryAuthorizationConfig Property Map
    Enable/Disable binary authorization features for the cluster. Structure is documented below.
    securityPostureConfig Property Map
    Enable/Disable Security Posture features for the cluster. Structure is documented below.

    FleetDefaultClusterConfigBinaryAuthorizationConfig, FleetDefaultClusterConfigBinaryAuthorizationConfigArgs

    EvaluationMode string
    Mode of operation for binauthz policy evaluation. Possible values are: DISABLED, POLICY_BINDINGS.
    PolicyBindings List<FleetDefaultClusterConfigBinaryAuthorizationConfigPolicyBinding>
    Binauthz policies that apply to this cluster. Structure is documented below.
    EvaluationMode string
    Mode of operation for binauthz policy evaluation. Possible values are: DISABLED, POLICY_BINDINGS.
    PolicyBindings []FleetDefaultClusterConfigBinaryAuthorizationConfigPolicyBinding
    Binauthz policies that apply to this cluster. Structure is documented below.
    evaluationMode String
    Mode of operation for binauthz policy evaluation. Possible values are: DISABLED, POLICY_BINDINGS.
    policyBindings List<FleetDefaultClusterConfigBinaryAuthorizationConfigPolicyBinding>
    Binauthz policies that apply to this cluster. Structure is documented below.
    evaluationMode string
    Mode of operation for binauthz policy evaluation. Possible values are: DISABLED, POLICY_BINDINGS.
    policyBindings FleetDefaultClusterConfigBinaryAuthorizationConfigPolicyBinding[]
    Binauthz policies that apply to this cluster. Structure is documented below.
    evaluation_mode str
    Mode of operation for binauthz policy evaluation. Possible values are: DISABLED, POLICY_BINDINGS.
    policy_bindings Sequence[FleetDefaultClusterConfigBinaryAuthorizationConfigPolicyBinding]
    Binauthz policies that apply to this cluster. Structure is documented below.
    evaluationMode String
    Mode of operation for binauthz policy evaluation. Possible values are: DISABLED, POLICY_BINDINGS.
    policyBindings List<Property Map>
    Binauthz policies that apply to this cluster. Structure is documented below.

    FleetDefaultClusterConfigBinaryAuthorizationConfigPolicyBinding, FleetDefaultClusterConfigBinaryAuthorizationConfigPolicyBindingArgs

    Name string
    The relative resource name of the binauthz platform policy to audit. GKE platform policies have the following format: projects/{project_number}/platforms/gke/policies/{policy_id}.
    Name string
    The relative resource name of the binauthz platform policy to audit. GKE platform policies have the following format: projects/{project_number}/platforms/gke/policies/{policy_id}.
    name String
    The relative resource name of the binauthz platform policy to audit. GKE platform policies have the following format: projects/{project_number}/platforms/gke/policies/{policy_id}.
    name string
    The relative resource name of the binauthz platform policy to audit. GKE platform policies have the following format: projects/{project_number}/platforms/gke/policies/{policy_id}.
    name str
    The relative resource name of the binauthz platform policy to audit. GKE platform policies have the following format: projects/{project_number}/platforms/gke/policies/{policy_id}.
    name String
    The relative resource name of the binauthz platform policy to audit. GKE platform policies have the following format: projects/{project_number}/platforms/gke/policies/{policy_id}.

    FleetDefaultClusterConfigSecurityPostureConfig, FleetDefaultClusterConfigSecurityPostureConfigArgs

    Mode string
    Sets which mode to use for Security Posture features. Possible values are: DISABLED, BASIC, ENTERPRISE.
    VulnerabilityMode string
    Sets which mode to use for vulnerability scanning. Possible values are: VULNERABILITY_DISABLED, VULNERABILITY_BASIC, VULNERABILITY_ENTERPRISE.
    Mode string
    Sets which mode to use for Security Posture features. Possible values are: DISABLED, BASIC, ENTERPRISE.
    VulnerabilityMode string
    Sets which mode to use for vulnerability scanning. Possible values are: VULNERABILITY_DISABLED, VULNERABILITY_BASIC, VULNERABILITY_ENTERPRISE.
    mode String
    Sets which mode to use for Security Posture features. Possible values are: DISABLED, BASIC, ENTERPRISE.
    vulnerabilityMode String
    Sets which mode to use for vulnerability scanning. Possible values are: VULNERABILITY_DISABLED, VULNERABILITY_BASIC, VULNERABILITY_ENTERPRISE.
    mode string
    Sets which mode to use for Security Posture features. Possible values are: DISABLED, BASIC, ENTERPRISE.
    vulnerabilityMode string
    Sets which mode to use for vulnerability scanning. Possible values are: VULNERABILITY_DISABLED, VULNERABILITY_BASIC, VULNERABILITY_ENTERPRISE.
    mode str
    Sets which mode to use for Security Posture features. Possible values are: DISABLED, BASIC, ENTERPRISE.
    vulnerability_mode str
    Sets which mode to use for vulnerability scanning. Possible values are: VULNERABILITY_DISABLED, VULNERABILITY_BASIC, VULNERABILITY_ENTERPRISE.
    mode String
    Sets which mode to use for Security Posture features. Possible values are: DISABLED, BASIC, ENTERPRISE.
    vulnerabilityMode String
    Sets which mode to use for vulnerability scanning. Possible values are: VULNERABILITY_DISABLED, VULNERABILITY_BASIC, VULNERABILITY_ENTERPRISE.

    FleetState, FleetStateArgs

    Code string
    (Output) Describes the state of a Fleet resource.
    Code string
    (Output) Describes the state of a Fleet resource.
    code String
    (Output) Describes the state of a Fleet resource.
    code string
    (Output) Describes the state of a Fleet resource.
    code str
    (Output) Describes the state of a Fleet resource.
    code String
    (Output) Describes the state of a Fleet resource.

    Import

    Fleet can be imported using any of these accepted formats:

    • projects/{{project}}/locations/global/fleets/default

    • {{project}}

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

    $ pulumi import gcp:gkehub/fleet:Fleet default projects/{{project}}/locations/global/fleets/default
    
    $ pulumi import gcp:gkehub/fleet:Fleet default {{project}}
    

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

    Package Details

    Repository
    Google Cloud (GCP) Classic pulumi/pulumi-gcp
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the google-beta Terraform Provider.
    gcp logo
    Google Cloud Classic v7.29.0 published on Wednesday, Jun 26, 2024 by Pulumi