accesscontextmanager

This provider is a derived work of the Terraform Provider distributed under MPL 2.0. If you encounter a bug or missing feature, first check the pulumi/pulumi-gcp repo; however, if that doesn’t turn up anything, please consult the source terraform-providers/terraform-provider-google repo.

class pulumi_gcp.accesscontextmanager.AccessLevel(resource_name, opts=None, basic=None, description=None, name=None, parent=None, title=None, __props__=None, __name__=None, __opts__=None)

An AccessLevel is a label that can be applied to requests to GCP services, along with a list of requirements necessary for the label to be applied.

To get more information about AccessLevel, see:

Parameters
  • resource_name (str) – The name of the resource.

  • opts (pulumi.ResourceOptions) – Options for the resource.

The basic object supports the following:

  • combiningFunction (pulumi.Input[str])

  • conditions (pulumi.Input[list])

    • devicePolicy (pulumi.Input[dict])

      • allowedDeviceManagementLevels (pulumi.Input[list])

      • allowedEncryptionStatuses (pulumi.Input[list])

      • osConstraints (pulumi.Input[list])

        • minimumVersion (pulumi.Input[str])

        • osType (pulumi.Input[str])

      • requireScreenLock (pulumi.Input[bool])

    • ipSubnetworks (pulumi.Input[list])

    • members (pulumi.Input[list])

    • negate (pulumi.Input[bool])

    • requiredAccessLevels (pulumi.Input[list])

static get(resource_name, id, opts=None, basic=None, description=None, name=None, parent=None, title=None)

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

Parameters
  • resource_name (str) – The unique name of the resulting resource.

  • id (str) – The unique provider ID of the resource to lookup.

  • opts (pulumi.ResourceOptions) – Options for the resource.

The basic object supports the following:

  • combiningFunction (pulumi.Input[str])

  • conditions (pulumi.Input[list])

    • devicePolicy (pulumi.Input[dict])

      • allowedDeviceManagementLevels (pulumi.Input[list])

      • allowedEncryptionStatuses (pulumi.Input[list])

      • osConstraints (pulumi.Input[list])

        • minimumVersion (pulumi.Input[str])

        • osType (pulumi.Input[str])

      • requireScreenLock (pulumi.Input[bool])

    • ipSubnetworks (pulumi.Input[list])

    • members (pulumi.Input[list])

    • negate (pulumi.Input[bool])

    • requiredAccessLevels (pulumi.Input[list])

translate_output_property(prop)

Provides subclasses of Resource an opportunity to translate names of output properties into a format of their choosing before writing those properties to the resource object.

Parameters

prop (str) – A property name.

Returns

A potentially transformed property name.

Return type

str

translate_input_property(prop)

Provides subclasses of Resource an opportunity to translate names of input properties into a format of their choosing before sending those properties to the Pulumi engine.

Parameters

prop (str) – A property name.

Returns

A potentially transformed property name.

Return type

str

class pulumi_gcp.accesscontextmanager.AccessPolicy(resource_name, opts=None, parent=None, title=None, __props__=None, __name__=None, __opts__=None)

AccessPolicy is a container for AccessLevels (which define the necessary attributes to use GCP services) and ServicePerimeters (which define regions of services able to freely pass data within a perimeter). An access policy is globally visible within an organization, and the restrictions it specifies apply to all projects within an organization.

To get more information about AccessPolicy, see:

Parameters
  • resource_name (str) – The name of the resource.

  • opts (pulumi.ResourceOptions) – Options for the resource.

static get(resource_name, id, opts=None, create_time=None, name=None, parent=None, title=None, update_time=None)

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

Parameters
  • resource_name (str) – The unique name of the resulting resource.

  • id (str) – The unique provider ID of the resource to lookup.

  • opts (pulumi.ResourceOptions) – Options for the resource.

translate_output_property(prop)

Provides subclasses of Resource an opportunity to translate names of output properties into a format of their choosing before writing those properties to the resource object.

Parameters

prop (str) – A property name.

Returns

A potentially transformed property name.

Return type

str

translate_input_property(prop)

Provides subclasses of Resource an opportunity to translate names of input properties into a format of their choosing before sending those properties to the Pulumi engine.

Parameters

prop (str) – A property name.

Returns

A potentially transformed property name.

Return type

str

class pulumi_gcp.accesscontextmanager.ServicePerimeter(resource_name, opts=None, description=None, name=None, parent=None, perimeter_type=None, status=None, title=None, __props__=None, __name__=None, __opts__=None)

ServicePerimeter describes a set of GCP resources which can freely import and export data amongst themselves, but not export outside of the ServicePerimeter. If a request with a source within this ServicePerimeter has a target outside of the ServicePerimeter, the request will be blocked. Otherwise the request is allowed. There are two types of Service Perimeter

  • Regular and Bridge. Regular Service Perimeters cannot overlap, a single GCP project can only belong to a single regular Service Perimeter. Service Perimeter Bridges can contain only GCP projects as members, a single GCP project may belong to multiple Service Perimeter Bridges.

To get more information about ServicePerimeter, see:

Parameters
  • resource_name (str) – The name of the resource.

  • opts (pulumi.ResourceOptions) – Options for the resource.

The status object supports the following:

  • accessLevels (pulumi.Input[list])

  • resources (pulumi.Input[list])

  • restrictedServices (pulumi.Input[list])

static get(resource_name, id, opts=None, create_time=None, description=None, name=None, parent=None, perimeter_type=None, status=None, title=None, update_time=None)

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

Parameters
  • resource_name (str) – The unique name of the resulting resource.

  • id (str) – The unique provider ID of the resource to lookup.

  • opts (pulumi.ResourceOptions) – Options for the resource.

The status object supports the following:

  • accessLevels (pulumi.Input[list])

  • resources (pulumi.Input[list])

  • restrictedServices (pulumi.Input[list])

translate_output_property(prop)

Provides subclasses of Resource an opportunity to translate names of output properties into a format of their choosing before writing those properties to the resource object.

Parameters

prop (str) – A property name.

Returns

A potentially transformed property name.

Return type

str

translate_input_property(prop)

Provides subclasses of Resource an opportunity to translate names of input properties into a format of their choosing before sending those properties to the Pulumi engine.

Parameters

prop (str) – A property name.

Returns

A potentially transformed property name.

Return type

str