gcp.accesscontextmanager.ServicePerimeters
Replace all existing Service Perimeters in an Access Policy with the Service Perimeters provided. This is done atomically.
This is a bulk edit of all Service Perimeters and may override existing Service Perimeters created by gcp.accesscontextmanager.ServicePerimeter
,
thus causing a permadiff if used alongside gcp.accesscontextmanager.ServicePerimeter
on the same parent.
To get more information about ServicePerimeters, see:
- API documentation
- How-to Guides
Example Usage
Access Context Manager Service Perimeters Basic
using System.Collections.Generic;
using Pulumi;
using Gcp = Pulumi.Gcp;
return await Deployment.RunAsync(() =>
{
var access_policy = new Gcp.AccessContextManager.AccessPolicy("access-policy", new()
{
Parent = "organizations/123456789",
Title = "my policy",
});
var service_perimeter = new Gcp.AccessContextManager.ServicePerimeters("service-perimeter", new()
{
Parent = access_policy.Name.Apply(name => $"accessPolicies/{name}"),
ServicePerimeterDetails = new[]
{
new Gcp.AccessContextManager.Inputs.ServicePerimetersServicePerimeterArgs
{
Name = access_policy.Name.Apply(name => $"accessPolicies/{name}/servicePerimeters/"),
Status = new Gcp.AccessContextManager.Inputs.ServicePerimetersServicePerimeterStatusArgs
{
RestrictedServices = new[]
{
"storage.googleapis.com",
},
},
Title = "",
},
new Gcp.AccessContextManager.Inputs.ServicePerimetersServicePerimeterArgs
{
Name = access_policy.Name.Apply(name => $"accessPolicies/{name}/servicePerimeters/"),
Status = new Gcp.AccessContextManager.Inputs.ServicePerimetersServicePerimeterStatusArgs
{
RestrictedServices = new[]
{
"bigtable.googleapis.com",
},
},
Title = "",
},
},
});
var access_level = new Gcp.AccessContextManager.AccessLevel("access-level", new()
{
Basic = new Gcp.AccessContextManager.Inputs.AccessLevelBasicArgs
{
Conditions = new[]
{
new Gcp.AccessContextManager.Inputs.AccessLevelBasicConditionArgs
{
DevicePolicy = new Gcp.AccessContextManager.Inputs.AccessLevelBasicConditionDevicePolicyArgs
{
OsConstraints = new[]
{
new Gcp.AccessContextManager.Inputs.AccessLevelBasicConditionDevicePolicyOsConstraintArgs
{
OsType = "DESKTOP_CHROME_OS",
},
},
RequireScreenLock = false,
},
Regions = new[]
{
"CH",
"IT",
"US",
},
},
},
},
Parent = access_policy.Name.Apply(name => $"accessPolicies/{name}"),
Title = "chromeos_no_lock",
});
});
package main
import (
"fmt"
"github.com/pulumi/pulumi-gcp/sdk/v6/go/gcp/accesscontextmanager"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := accesscontextmanager.NewAccessPolicy(ctx, "access-policy", &accesscontextmanager.AccessPolicyArgs{
Parent: pulumi.String("organizations/123456789"),
Title: pulumi.String("my policy"),
})
if err != nil {
return err
}
_, err = accesscontextmanager.NewServicePerimeters(ctx, "service-perimeter", &accesscontextmanager.ServicePerimetersArgs{
Parent: access_policy.Name.ApplyT(func(name string) (string, error) {
return fmt.Sprintf("accessPolicies/%v", name), nil
}).(pulumi.StringOutput),
ServicePerimeters: accesscontextmanager.ServicePerimetersServicePerimeterArray{
&accesscontextmanager.ServicePerimetersServicePerimeterArgs{
Name: access_policy.Name.ApplyT(func(name string) (string, error) {
return fmt.Sprintf("accessPolicies/%v/servicePerimeters/", name), nil
}).(pulumi.StringOutput),
Status: &accesscontextmanager.ServicePerimetersServicePerimeterStatusArgs{
RestrictedServices: pulumi.StringArray{
pulumi.String("storage.googleapis.com"),
},
},
Title: pulumi.String(""),
},
&accesscontextmanager.ServicePerimetersServicePerimeterArgs{
Name: access_policy.Name.ApplyT(func(name string) (string, error) {
return fmt.Sprintf("accessPolicies/%v/servicePerimeters/", name), nil
}).(pulumi.StringOutput),
Status: &accesscontextmanager.ServicePerimetersServicePerimeterStatusArgs{
RestrictedServices: pulumi.StringArray{
pulumi.String("bigtable.googleapis.com"),
},
},
Title: pulumi.String(""),
},
},
})
if err != nil {
return err
}
_, err = accesscontextmanager.NewAccessLevel(ctx, "access-level", &accesscontextmanager.AccessLevelArgs{
Basic: &accesscontextmanager.AccessLevelBasicArgs{
Conditions: accesscontextmanager.AccessLevelBasicConditionArray{
&accesscontextmanager.AccessLevelBasicConditionArgs{
DevicePolicy: &accesscontextmanager.AccessLevelBasicConditionDevicePolicyArgs{
OsConstraints: accesscontextmanager.AccessLevelBasicConditionDevicePolicyOsConstraintArray{
&accesscontextmanager.AccessLevelBasicConditionDevicePolicyOsConstraintArgs{
OsType: pulumi.String("DESKTOP_CHROME_OS"),
},
},
RequireScreenLock: pulumi.Bool(false),
},
Regions: pulumi.StringArray{
pulumi.String("CH"),
pulumi.String("IT"),
pulumi.String("US"),
},
},
},
},
Parent: access_policy.Name.ApplyT(func(name string) (string, error) {
return fmt.Sprintf("accessPolicies/%v", name), nil
}).(pulumi.StringOutput),
Title: pulumi.String("chromeos_no_lock"),
})
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.gcp.accesscontextmanager.AccessPolicy;
import com.pulumi.gcp.accesscontextmanager.AccessPolicyArgs;
import com.pulumi.gcp.accesscontextmanager.ServicePerimeters;
import com.pulumi.gcp.accesscontextmanager.ServicePerimetersArgs;
import com.pulumi.gcp.accesscontextmanager.inputs.ServicePerimetersServicePerimeterArgs;
import com.pulumi.gcp.accesscontextmanager.inputs.ServicePerimetersServicePerimeterStatusArgs;
import com.pulumi.gcp.accesscontextmanager.AccessLevel;
import com.pulumi.gcp.accesscontextmanager.AccessLevelArgs;
import com.pulumi.gcp.accesscontextmanager.inputs.AccessLevelBasicArgs;
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 access_policy = new AccessPolicy("access-policy", AccessPolicyArgs.builder()
.parent("organizations/123456789")
.title("my policy")
.build());
var service_perimeter = new ServicePerimeters("service-perimeter", ServicePerimetersArgs.builder()
.parent(access_policy.name().applyValue(name -> String.format("accessPolicies/%s", name)))
.servicePerimeters(
ServicePerimetersServicePerimeterArgs.builder()
.name(access_policy.name().applyValue(name -> String.format("accessPolicies/%s/servicePerimeters/", name)))
.status(ServicePerimetersServicePerimeterStatusArgs.builder()
.restrictedServices("storage.googleapis.com")
.build())
.title("")
.build(),
ServicePerimetersServicePerimeterArgs.builder()
.name(access_policy.name().applyValue(name -> String.format("accessPolicies/%s/servicePerimeters/", name)))
.status(ServicePerimetersServicePerimeterStatusArgs.builder()
.restrictedServices("bigtable.googleapis.com")
.build())
.title("")
.build())
.build());
var access_level = new AccessLevel("access-level", AccessLevelArgs.builder()
.basic(AccessLevelBasicArgs.builder()
.conditions(AccessLevelBasicConditionArgs.builder()
.devicePolicy(AccessLevelBasicConditionDevicePolicyArgs.builder()
.osConstraints(AccessLevelBasicConditionDevicePolicyOsConstraintArgs.builder()
.osType("DESKTOP_CHROME_OS")
.build())
.requireScreenLock(false)
.build())
.regions(
"CH",
"IT",
"US")
.build())
.build())
.parent(access_policy.name().applyValue(name -> String.format("accessPolicies/%s", name)))
.title("chromeos_no_lock")
.build());
}
}
import pulumi
import pulumi_gcp as gcp
access_policy = gcp.accesscontextmanager.AccessPolicy("access-policy",
parent="organizations/123456789",
title="my policy")
service_perimeter = gcp.accesscontextmanager.ServicePerimeters("service-perimeter",
parent=access_policy.name.apply(lambda name: f"accessPolicies/{name}"),
service_perimeters=[
gcp.accesscontextmanager.ServicePerimetersServicePerimeterArgs(
name=access_policy.name.apply(lambda name: f"accessPolicies/{name}/servicePerimeters/"),
status=gcp.accesscontextmanager.ServicePerimetersServicePerimeterStatusArgs(
restricted_services=["storage.googleapis.com"],
),
title="",
),
gcp.accesscontextmanager.ServicePerimetersServicePerimeterArgs(
name=access_policy.name.apply(lambda name: f"accessPolicies/{name}/servicePerimeters/"),
status=gcp.accesscontextmanager.ServicePerimetersServicePerimeterStatusArgs(
restricted_services=["bigtable.googleapis.com"],
),
title="",
),
])
access_level = gcp.accesscontextmanager.AccessLevel("access-level",
basic=gcp.accesscontextmanager.AccessLevelBasicArgs(
conditions=[gcp.accesscontextmanager.AccessLevelBasicConditionArgs(
device_policy=gcp.accesscontextmanager.AccessLevelBasicConditionDevicePolicyArgs(
os_constraints=[gcp.accesscontextmanager.AccessLevelBasicConditionDevicePolicyOsConstraintArgs(
os_type="DESKTOP_CHROME_OS",
)],
require_screen_lock=False,
),
regions=[
"CH",
"IT",
"US",
],
)],
),
parent=access_policy.name.apply(lambda name: f"accessPolicies/{name}"),
title="chromeos_no_lock")
import * as pulumi from "@pulumi/pulumi";
import * as gcp from "@pulumi/gcp";
const access_policy = new gcp.accesscontextmanager.AccessPolicy("access-policy", {
parent: "organizations/123456789",
title: "my policy",
});
const service_perimeter = new gcp.accesscontextmanager.ServicePerimeters("service-perimeter", {
parent: pulumi.interpolate`accessPolicies/${access_policy.name}`,
servicePerimeters: [
{
name: pulumi.interpolate`accessPolicies/${access_policy.name}/servicePerimeters/`,
status: {
restrictedServices: ["storage.googleapis.com"],
},
title: "",
},
{
name: pulumi.interpolate`accessPolicies/${access_policy.name}/servicePerimeters/`,
status: {
restrictedServices: ["bigtable.googleapis.com"],
},
title: "",
},
],
});
const access_level = new gcp.accesscontextmanager.AccessLevel("access-level", {
basic: {
conditions: [{
devicePolicy: {
osConstraints: [{
osType: "DESKTOP_CHROME_OS",
}],
requireScreenLock: false,
},
regions: [
"CH",
"IT",
"US",
],
}],
},
parent: pulumi.interpolate`accessPolicies/${access_policy.name}`,
title: "chromeos_no_lock",
});
resources:
service-perimeter:
type: gcp:accesscontextmanager:ServicePerimeters
properties:
parent: accessPolicies/${["access-policy"].name}
servicePerimeters:
- name: accessPolicies/${["access-policy"].name}/servicePerimeters/
status:
restrictedServices:
- storage.googleapis.com
title:
- name: accessPolicies/${["access-policy"].name}/servicePerimeters/
status:
restrictedServices:
- bigtable.googleapis.com
title:
access-level:
type: gcp:accesscontextmanager:AccessLevel
properties:
basic:
conditions:
- devicePolicy:
osConstraints:
- osType: DESKTOP_CHROME_OS
requireScreenLock: false
regions:
- CH
- IT
- US
parent: accessPolicies/${["access-policy"].name}
title: chromeos_no_lock
access-policy:
type: gcp:accesscontextmanager:AccessPolicy
properties:
parent: organizations/123456789
title: my policy
Create ServicePerimeters Resource
new ServicePerimeters(name: string, args: ServicePerimetersArgs, opts?: CustomResourceOptions);
@overload
def ServicePerimeters(resource_name: str,
opts: Optional[ResourceOptions] = None,
parent: Optional[str] = None,
service_perimeters: Optional[Sequence[ServicePerimetersServicePerimeterArgs]] = None)
@overload
def ServicePerimeters(resource_name: str,
args: ServicePerimetersArgs,
opts: Optional[ResourceOptions] = None)
func NewServicePerimeters(ctx *Context, name string, args ServicePerimetersArgs, opts ...ResourceOption) (*ServicePerimeters, error)
public ServicePerimeters(string name, ServicePerimetersArgs args, CustomResourceOptions? opts = null)
public ServicePerimeters(String name, ServicePerimetersArgs args)
public ServicePerimeters(String name, ServicePerimetersArgs args, CustomResourceOptions options)
type: gcp:accesscontextmanager:ServicePerimeters
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ServicePerimetersArgs
- 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 ServicePerimetersArgs
- 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 ServicePerimetersArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ServicePerimetersArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args ServicePerimetersArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
ServicePerimeters 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 ServicePerimeters resource accepts the following input properties:
- Parent string
The AccessPolicy this ServicePerimeter lives in. Format: accessPolicies/{policy_id}
- Service
Perimeter List<ServiceDetails Perimeters Service Perimeter Args> The desired Service Perimeters that should replace all existing Service Perimeters in the Access Policy. Structure is documented below.
- Parent string
The AccessPolicy this ServicePerimeter lives in. Format: accessPolicies/{policy_id}
- Service
Perimeters []ServicePerimeters Service Perimeter Args The desired Service Perimeters that should replace all existing Service Perimeters in the Access Policy. Structure is documented below.
- parent String
The AccessPolicy this ServicePerimeter lives in. Format: accessPolicies/{policy_id}
- service
Perimeters List<ServicePerimeters Service Perimeter Args> The desired Service Perimeters that should replace all existing Service Perimeters in the Access Policy. Structure is documented below.
- parent string
The AccessPolicy this ServicePerimeter lives in. Format: accessPolicies/{policy_id}
- service
Perimeters ServicePerimeters Service Perimeter Args[] The desired Service Perimeters that should replace all existing Service Perimeters in the Access Policy. Structure is documented below.
- parent str
The AccessPolicy this ServicePerimeter lives in. Format: accessPolicies/{policy_id}
- service_
perimeters Sequence[ServicePerimeters Service Perimeter Args] The desired Service Perimeters that should replace all existing Service Perimeters in the Access Policy. Structure is documented below.
- parent String
The AccessPolicy this ServicePerimeter lives in. Format: accessPolicies/{policy_id}
- service
Perimeters List<Property Map> The desired Service Perimeters that should replace all existing Service Perimeters in the Access Policy. Structure is documented below.
Outputs
All input properties are implicitly available as output properties. Additionally, the ServicePerimeters resource produces the following output properties:
- Id string
The provider-assigned unique ID for this managed resource.
- Id string
The provider-assigned unique ID for this managed resource.
- id String
The provider-assigned unique ID for this managed resource.
- id string
The provider-assigned unique ID for this managed resource.
- id str
The provider-assigned unique ID for this managed resource.
- id String
The provider-assigned unique ID for this managed resource.
Look up Existing ServicePerimeters Resource
Get an existing ServicePerimeters 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?: ServicePerimetersState, opts?: CustomResourceOptions): ServicePerimeters
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
parent: Optional[str] = None,
service_perimeters: Optional[Sequence[ServicePerimetersServicePerimeterArgs]] = None) -> ServicePerimeters
func GetServicePerimeters(ctx *Context, name string, id IDInput, state *ServicePerimetersState, opts ...ResourceOption) (*ServicePerimeters, error)
public static ServicePerimeters Get(string name, Input<string> id, ServicePerimetersState? state, CustomResourceOptions? opts = null)
public static ServicePerimeters get(String name, Output<String> id, ServicePerimetersState 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.
- Parent string
The AccessPolicy this ServicePerimeter lives in. Format: accessPolicies/{policy_id}
- Service
Perimeter List<ServiceDetails Perimeters Service Perimeter Args> The desired Service Perimeters that should replace all existing Service Perimeters in the Access Policy. Structure is documented below.
- Parent string
The AccessPolicy this ServicePerimeter lives in. Format: accessPolicies/{policy_id}
- Service
Perimeters []ServicePerimeters Service Perimeter Args The desired Service Perimeters that should replace all existing Service Perimeters in the Access Policy. Structure is documented below.
- parent String
The AccessPolicy this ServicePerimeter lives in. Format: accessPolicies/{policy_id}
- service
Perimeters List<ServicePerimeters Service Perimeter Args> The desired Service Perimeters that should replace all existing Service Perimeters in the Access Policy. Structure is documented below.
- parent string
The AccessPolicy this ServicePerimeter lives in. Format: accessPolicies/{policy_id}
- service
Perimeters ServicePerimeters Service Perimeter Args[] The desired Service Perimeters that should replace all existing Service Perimeters in the Access Policy. Structure is documented below.
- parent str
The AccessPolicy this ServicePerimeter lives in. Format: accessPolicies/{policy_id}
- service_
perimeters Sequence[ServicePerimeters Service Perimeter Args] The desired Service Perimeters that should replace all existing Service Perimeters in the Access Policy. Structure is documented below.
- parent String
The AccessPolicy this ServicePerimeter lives in. Format: accessPolicies/{policy_id}
- service
Perimeters List<Property Map> The desired Service Perimeters that should replace all existing Service Perimeters in the Access Policy. Structure is documented below.
Supporting Types
ServicePerimetersServicePerimeter
- Name string
Resource name for the ServicePerimeter. The short_name component must begin with a letter and only include alphanumeric and '_'. Format: accessPolicies/{policy_id}/servicePerimeters/{short_name}
- Title string
Human readable title. Must be unique within the Policy.
- Create
Time string Time the AccessPolicy was created in UTC.
- Description string
Description of the ServicePerimeter and its use. Does not affect behavior.
- Perimeter
Type string Specifies the type of the Perimeter. There are two types: regular and bridge. Regular Service Perimeter contains resources, access levels, and restricted services. Every resource can be in at most ONE regular Service Perimeter. In addition to being in a regular service perimeter, a resource can also be in zero or more perimeter bridges. A perimeter bridge only contains resources. Cross project operations are permitted if all effected resources share some perimeter (whether bridge or regular). Perimeter Bridge does not contain access levels or services: those are governed entirely by the regular perimeter that resource is in. Perimeter Bridges are typically useful when building more complex topologies with many independent perimeters that need to share some data with a common perimeter, but should not be able to share data among themselves. Default value is
PERIMETER_TYPE_REGULAR
. Possible values arePERIMETER_TYPE_REGULAR
andPERIMETER_TYPE_BRIDGE
.- Spec
Service
Perimeters Service Perimeter Spec Proposed (or dry run) ServicePerimeter configuration. This configuration allows to specify and test ServicePerimeter configuration without enforcing actual access restrictions. Only allowed to be set when the
useExplicitDryRunSpec
flag is set. Structure is documented below.- Status
Service
Perimeters Service Perimeter Status ServicePerimeter configuration. Specifies sets of resources, restricted services and access levels that determine perimeter content and boundaries. Structure is documented below.
- Update
Time string Time the AccessPolicy was updated in UTC.
- Use
Explicit boolDry Run Spec Use explicit dry run spec flag. Ordinarily, a dry-run spec implicitly exists for all Service Perimeters, and that spec is identical to the status for those Service Perimeters. When this flag is set, it inhibits the generation of the implicit spec, thereby allowing the user to explicitly provide a configuration ("spec") to use in a dry-run version of the Service Perimeter. This allows the user to test changes to the enforced config ("status") without actually enforcing them. This testing is done through analyzing the differences between currently enforced and suggested restrictions. useExplicitDryRunSpec must bet set to True if any of the fields in the spec are set to non-default values.
- Name string
Resource name for the ServicePerimeter. The short_name component must begin with a letter and only include alphanumeric and '_'. Format: accessPolicies/{policy_id}/servicePerimeters/{short_name}
- Title string
Human readable title. Must be unique within the Policy.
- Create
Time string Time the AccessPolicy was created in UTC.
- Description string
Description of the ServicePerimeter and its use. Does not affect behavior.
- Perimeter
Type string Specifies the type of the Perimeter. There are two types: regular and bridge. Regular Service Perimeter contains resources, access levels, and restricted services. Every resource can be in at most ONE regular Service Perimeter. In addition to being in a regular service perimeter, a resource can also be in zero or more perimeter bridges. A perimeter bridge only contains resources. Cross project operations are permitted if all effected resources share some perimeter (whether bridge or regular). Perimeter Bridge does not contain access levels or services: those are governed entirely by the regular perimeter that resource is in. Perimeter Bridges are typically useful when building more complex topologies with many independent perimeters that need to share some data with a common perimeter, but should not be able to share data among themselves. Default value is
PERIMETER_TYPE_REGULAR
. Possible values arePERIMETER_TYPE_REGULAR
andPERIMETER_TYPE_BRIDGE
.- Spec
Service
Perimeters Service Perimeter Spec Proposed (or dry run) ServicePerimeter configuration. This configuration allows to specify and test ServicePerimeter configuration without enforcing actual access restrictions. Only allowed to be set when the
useExplicitDryRunSpec
flag is set. Structure is documented below.- Status
Service
Perimeters Service Perimeter Status ServicePerimeter configuration. Specifies sets of resources, restricted services and access levels that determine perimeter content and boundaries. Structure is documented below.
- Update
Time string Time the AccessPolicy was updated in UTC.
- Use
Explicit boolDry Run Spec Use explicit dry run spec flag. Ordinarily, a dry-run spec implicitly exists for all Service Perimeters, and that spec is identical to the status for those Service Perimeters. When this flag is set, it inhibits the generation of the implicit spec, thereby allowing the user to explicitly provide a configuration ("spec") to use in a dry-run version of the Service Perimeter. This allows the user to test changes to the enforced config ("status") without actually enforcing them. This testing is done through analyzing the differences between currently enforced and suggested restrictions. useExplicitDryRunSpec must bet set to True if any of the fields in the spec are set to non-default values.
- name String
Resource name for the ServicePerimeter. The short_name component must begin with a letter and only include alphanumeric and '_'. Format: accessPolicies/{policy_id}/servicePerimeters/{short_name}
- title String
Human readable title. Must be unique within the Policy.
- create
Time String Time the AccessPolicy was created in UTC.
- description String
Description of the ServicePerimeter and its use. Does not affect behavior.
- perimeter
Type String Specifies the type of the Perimeter. There are two types: regular and bridge. Regular Service Perimeter contains resources, access levels, and restricted services. Every resource can be in at most ONE regular Service Perimeter. In addition to being in a regular service perimeter, a resource can also be in zero or more perimeter bridges. A perimeter bridge only contains resources. Cross project operations are permitted if all effected resources share some perimeter (whether bridge or regular). Perimeter Bridge does not contain access levels or services: those are governed entirely by the regular perimeter that resource is in. Perimeter Bridges are typically useful when building more complex topologies with many independent perimeters that need to share some data with a common perimeter, but should not be able to share data among themselves. Default value is
PERIMETER_TYPE_REGULAR
. Possible values arePERIMETER_TYPE_REGULAR
andPERIMETER_TYPE_BRIDGE
.- spec
Service
Perimeters Service Perimeter Spec Proposed (or dry run) ServicePerimeter configuration. This configuration allows to specify and test ServicePerimeter configuration without enforcing actual access restrictions. Only allowed to be set when the
useExplicitDryRunSpec
flag is set. Structure is documented below.- status
Service
Perimeters Service Perimeter Status ServicePerimeter configuration. Specifies sets of resources, restricted services and access levels that determine perimeter content and boundaries. Structure is documented below.
- update
Time String Time the AccessPolicy was updated in UTC.
- use
Explicit BooleanDry Run Spec Use explicit dry run spec flag. Ordinarily, a dry-run spec implicitly exists for all Service Perimeters, and that spec is identical to the status for those Service Perimeters. When this flag is set, it inhibits the generation of the implicit spec, thereby allowing the user to explicitly provide a configuration ("spec") to use in a dry-run version of the Service Perimeter. This allows the user to test changes to the enforced config ("status") without actually enforcing them. This testing is done through analyzing the differences between currently enforced and suggested restrictions. useExplicitDryRunSpec must bet set to True if any of the fields in the spec are set to non-default values.
- name string
Resource name for the ServicePerimeter. The short_name component must begin with a letter and only include alphanumeric and '_'. Format: accessPolicies/{policy_id}/servicePerimeters/{short_name}
- title string
Human readable title. Must be unique within the Policy.
- create
Time string Time the AccessPolicy was created in UTC.
- description string
Description of the ServicePerimeter and its use. Does not affect behavior.
- perimeter
Type string Specifies the type of the Perimeter. There are two types: regular and bridge. Regular Service Perimeter contains resources, access levels, and restricted services. Every resource can be in at most ONE regular Service Perimeter. In addition to being in a regular service perimeter, a resource can also be in zero or more perimeter bridges. A perimeter bridge only contains resources. Cross project operations are permitted if all effected resources share some perimeter (whether bridge or regular). Perimeter Bridge does not contain access levels or services: those are governed entirely by the regular perimeter that resource is in. Perimeter Bridges are typically useful when building more complex topologies with many independent perimeters that need to share some data with a common perimeter, but should not be able to share data among themselves. Default value is
PERIMETER_TYPE_REGULAR
. Possible values arePERIMETER_TYPE_REGULAR
andPERIMETER_TYPE_BRIDGE
.- spec
Service
Perimeters Service Perimeter Spec Proposed (or dry run) ServicePerimeter configuration. This configuration allows to specify and test ServicePerimeter configuration without enforcing actual access restrictions. Only allowed to be set when the
useExplicitDryRunSpec
flag is set. Structure is documented below.- status
Service
Perimeters Service Perimeter Status ServicePerimeter configuration. Specifies sets of resources, restricted services and access levels that determine perimeter content and boundaries. Structure is documented below.
- update
Time string Time the AccessPolicy was updated in UTC.
- use
Explicit booleanDry Run Spec Use explicit dry run spec flag. Ordinarily, a dry-run spec implicitly exists for all Service Perimeters, and that spec is identical to the status for those Service Perimeters. When this flag is set, it inhibits the generation of the implicit spec, thereby allowing the user to explicitly provide a configuration ("spec") to use in a dry-run version of the Service Perimeter. This allows the user to test changes to the enforced config ("status") without actually enforcing them. This testing is done through analyzing the differences between currently enforced and suggested restrictions. useExplicitDryRunSpec must bet set to True if any of the fields in the spec are set to non-default values.
- name str
Resource name for the ServicePerimeter. The short_name component must begin with a letter and only include alphanumeric and '_'. Format: accessPolicies/{policy_id}/servicePerimeters/{short_name}
- title str
Human readable title. Must be unique within the Policy.
- create_
time str Time the AccessPolicy was created in UTC.
- description str
Description of the ServicePerimeter and its use. Does not affect behavior.
- perimeter_
type str Specifies the type of the Perimeter. There are two types: regular and bridge. Regular Service Perimeter contains resources, access levels, and restricted services. Every resource can be in at most ONE regular Service Perimeter. In addition to being in a regular service perimeter, a resource can also be in zero or more perimeter bridges. A perimeter bridge only contains resources. Cross project operations are permitted if all effected resources share some perimeter (whether bridge or regular). Perimeter Bridge does not contain access levels or services: those are governed entirely by the regular perimeter that resource is in. Perimeter Bridges are typically useful when building more complex topologies with many independent perimeters that need to share some data with a common perimeter, but should not be able to share data among themselves. Default value is
PERIMETER_TYPE_REGULAR
. Possible values arePERIMETER_TYPE_REGULAR
andPERIMETER_TYPE_BRIDGE
.- spec
Service
Perimeters Service Perimeter Spec Proposed (or dry run) ServicePerimeter configuration. This configuration allows to specify and test ServicePerimeter configuration without enforcing actual access restrictions. Only allowed to be set when the
useExplicitDryRunSpec
flag is set. Structure is documented below.- status
Service
Perimeters Service Perimeter Status ServicePerimeter configuration. Specifies sets of resources, restricted services and access levels that determine perimeter content and boundaries. Structure is documented below.
- update_
time str Time the AccessPolicy was updated in UTC.
- use_
explicit_ booldry_ run_ spec Use explicit dry run spec flag. Ordinarily, a dry-run spec implicitly exists for all Service Perimeters, and that spec is identical to the status for those Service Perimeters. When this flag is set, it inhibits the generation of the implicit spec, thereby allowing the user to explicitly provide a configuration ("spec") to use in a dry-run version of the Service Perimeter. This allows the user to test changes to the enforced config ("status") without actually enforcing them. This testing is done through analyzing the differences between currently enforced and suggested restrictions. useExplicitDryRunSpec must bet set to True if any of the fields in the spec are set to non-default values.
- name String
Resource name for the ServicePerimeter. The short_name component must begin with a letter and only include alphanumeric and '_'. Format: accessPolicies/{policy_id}/servicePerimeters/{short_name}
- title String
Human readable title. Must be unique within the Policy.
- create
Time String Time the AccessPolicy was created in UTC.
- description String
Description of the ServicePerimeter and its use. Does not affect behavior.
- perimeter
Type String Specifies the type of the Perimeter. There are two types: regular and bridge. Regular Service Perimeter contains resources, access levels, and restricted services. Every resource can be in at most ONE regular Service Perimeter. In addition to being in a regular service perimeter, a resource can also be in zero or more perimeter bridges. A perimeter bridge only contains resources. Cross project operations are permitted if all effected resources share some perimeter (whether bridge or regular). Perimeter Bridge does not contain access levels or services: those are governed entirely by the regular perimeter that resource is in. Perimeter Bridges are typically useful when building more complex topologies with many independent perimeters that need to share some data with a common perimeter, but should not be able to share data among themselves. Default value is
PERIMETER_TYPE_REGULAR
. Possible values arePERIMETER_TYPE_REGULAR
andPERIMETER_TYPE_BRIDGE
.- spec Property Map
Proposed (or dry run) ServicePerimeter configuration. This configuration allows to specify and test ServicePerimeter configuration without enforcing actual access restrictions. Only allowed to be set when the
useExplicitDryRunSpec
flag is set. Structure is documented below.- status Property Map
ServicePerimeter configuration. Specifies sets of resources, restricted services and access levels that determine perimeter content and boundaries. Structure is documented below.
- update
Time String Time the AccessPolicy was updated in UTC.
- use
Explicit BooleanDry Run Spec Use explicit dry run spec flag. Ordinarily, a dry-run spec implicitly exists for all Service Perimeters, and that spec is identical to the status for those Service Perimeters. When this flag is set, it inhibits the generation of the implicit spec, thereby allowing the user to explicitly provide a configuration ("spec") to use in a dry-run version of the Service Perimeter. This allows the user to test changes to the enforced config ("status") without actually enforcing them. This testing is done through analyzing the differences between currently enforced and suggested restrictions. useExplicitDryRunSpec must bet set to True if any of the fields in the spec are set to non-default values.
ServicePerimetersServicePerimeterSpec
- Access
Levels List<string> A list of AccessLevel resource names that allow resources within the ServicePerimeter to be accessed from the internet. AccessLevels listed must be in the same policy as this ServicePerimeter. Referencing a nonexistent AccessLevel is a syntax error. If no AccessLevel names are listed, resources within the perimeter can only be accessed via GCP calls with request origins within the perimeter. For Service Perimeter Bridge, must be empty. Format: accessPolicies/{policy_id}/accessLevels/{access_level_name}
- Egress
Policies List<ServicePerimeters Service Perimeter Spec Egress Policy> List of EgressPolicies to apply to the perimeter. A perimeter may have multiple EgressPolicies, each of which is evaluated separately. Access is granted if any EgressPolicy grants it. Must be empty for a perimeter bridge. Structure is documented below.
- Ingress
Policies List<ServicePerimeters Service Perimeter Spec Ingress Policy> List of
IngressPolicies
to apply to the perimeter. A perimeter may have multipleIngressPolicies
, each of which is evaluated separately. Access is granted if anyIngress Policy
grants it. Must be empty for a perimeter bridge. Structure is documented below.- Resources List<string>
A list of GCP resources that are inside of the service perimeter. Currently only projects are allowed. Format: projects/{project_number}
- Restricted
Services List<string> GCP services that are subject to the Service Perimeter restrictions. Must contain a list of services. For example, if
storage.googleapis.com
is specified, access to the storage buckets inside the perimeter must meet the perimeter's access restrictions.- Vpc
Accessible ServiceServices Perimeters Service Perimeter Spec Vpc Accessible Services Specifies how APIs are allowed to communicate within the Service Perimeter. Structure is documented below.
- Access
Levels []string A list of AccessLevel resource names that allow resources within the ServicePerimeter to be accessed from the internet. AccessLevels listed must be in the same policy as this ServicePerimeter. Referencing a nonexistent AccessLevel is a syntax error. If no AccessLevel names are listed, resources within the perimeter can only be accessed via GCP calls with request origins within the perimeter. For Service Perimeter Bridge, must be empty. Format: accessPolicies/{policy_id}/accessLevels/{access_level_name}
- Egress
Policies []ServicePerimeters Service Perimeter Spec Egress Policy List of EgressPolicies to apply to the perimeter. A perimeter may have multiple EgressPolicies, each of which is evaluated separately. Access is granted if any EgressPolicy grants it. Must be empty for a perimeter bridge. Structure is documented below.
- Ingress
Policies []ServicePerimeters Service Perimeter Spec Ingress Policy List of
IngressPolicies
to apply to the perimeter. A perimeter may have multipleIngressPolicies
, each of which is evaluated separately. Access is granted if anyIngress Policy
grants it. Must be empty for a perimeter bridge. Structure is documented below.- Resources []string
A list of GCP resources that are inside of the service perimeter. Currently only projects are allowed. Format: projects/{project_number}
- Restricted
Services []string GCP services that are subject to the Service Perimeter restrictions. Must contain a list of services. For example, if
storage.googleapis.com
is specified, access to the storage buckets inside the perimeter must meet the perimeter's access restrictions.- Vpc
Accessible ServiceServices Perimeters Service Perimeter Spec Vpc Accessible Services Specifies how APIs are allowed to communicate within the Service Perimeter. Structure is documented below.
- access
Levels List<String> A list of AccessLevel resource names that allow resources within the ServicePerimeter to be accessed from the internet. AccessLevels listed must be in the same policy as this ServicePerimeter. Referencing a nonexistent AccessLevel is a syntax error. If no AccessLevel names are listed, resources within the perimeter can only be accessed via GCP calls with request origins within the perimeter. For Service Perimeter Bridge, must be empty. Format: accessPolicies/{policy_id}/accessLevels/{access_level_name}
- egress
Policies List<ServicePerimeters Service Perimeter Spec Egress Policy> List of EgressPolicies to apply to the perimeter. A perimeter may have multiple EgressPolicies, each of which is evaluated separately. Access is granted if any EgressPolicy grants it. Must be empty for a perimeter bridge. Structure is documented below.
- ingress
Policies List<ServicePerimeters Service Perimeter Spec Ingress Policy> List of
IngressPolicies
to apply to the perimeter. A perimeter may have multipleIngressPolicies
, each of which is evaluated separately. Access is granted if anyIngress Policy
grants it. Must be empty for a perimeter bridge. Structure is documented below.- resources List<String>
A list of GCP resources that are inside of the service perimeter. Currently only projects are allowed. Format: projects/{project_number}
- restricted
Services List<String> GCP services that are subject to the Service Perimeter restrictions. Must contain a list of services. For example, if
storage.googleapis.com
is specified, access to the storage buckets inside the perimeter must meet the perimeter's access restrictions.- vpc
Accessible ServiceServices Perimeters Service Perimeter Spec Vpc Accessible Services Specifies how APIs are allowed to communicate within the Service Perimeter. Structure is documented below.
- access
Levels string[] A list of AccessLevel resource names that allow resources within the ServicePerimeter to be accessed from the internet. AccessLevels listed must be in the same policy as this ServicePerimeter. Referencing a nonexistent AccessLevel is a syntax error. If no AccessLevel names are listed, resources within the perimeter can only be accessed via GCP calls with request origins within the perimeter. For Service Perimeter Bridge, must be empty. Format: accessPolicies/{policy_id}/accessLevels/{access_level_name}
- egress
Policies ServicePerimeters Service Perimeter Spec Egress Policy[] List of EgressPolicies to apply to the perimeter. A perimeter may have multiple EgressPolicies, each of which is evaluated separately. Access is granted if any EgressPolicy grants it. Must be empty for a perimeter bridge. Structure is documented below.
- ingress
Policies ServicePerimeters Service Perimeter Spec Ingress Policy[] List of
IngressPolicies
to apply to the perimeter. A perimeter may have multipleIngressPolicies
, each of which is evaluated separately. Access is granted if anyIngress Policy
grants it. Must be empty for a perimeter bridge. Structure is documented below.- resources string[]
A list of GCP resources that are inside of the service perimeter. Currently only projects are allowed. Format: projects/{project_number}
- restricted
Services string[] GCP services that are subject to the Service Perimeter restrictions. Must contain a list of services. For example, if
storage.googleapis.com
is specified, access to the storage buckets inside the perimeter must meet the perimeter's access restrictions.- vpc
Accessible ServiceServices Perimeters Service Perimeter Spec Vpc Accessible Services Specifies how APIs are allowed to communicate within the Service Perimeter. Structure is documented below.
- access_
levels Sequence[str] A list of AccessLevel resource names that allow resources within the ServicePerimeter to be accessed from the internet. AccessLevels listed must be in the same policy as this ServicePerimeter. Referencing a nonexistent AccessLevel is a syntax error. If no AccessLevel names are listed, resources within the perimeter can only be accessed via GCP calls with request origins within the perimeter. For Service Perimeter Bridge, must be empty. Format: accessPolicies/{policy_id}/accessLevels/{access_level_name}
- egress_
policies Sequence[ServicePerimeters Service Perimeter Spec Egress Policy] List of EgressPolicies to apply to the perimeter. A perimeter may have multiple EgressPolicies, each of which is evaluated separately. Access is granted if any EgressPolicy grants it. Must be empty for a perimeter bridge. Structure is documented below.
- ingress_
policies Sequence[ServicePerimeters Service Perimeter Spec Ingress Policy] List of
IngressPolicies
to apply to the perimeter. A perimeter may have multipleIngressPolicies
, each of which is evaluated separately. Access is granted if anyIngress Policy
grants it. Must be empty for a perimeter bridge. Structure is documented below.- resources Sequence[str]
A list of GCP resources that are inside of the service perimeter. Currently only projects are allowed. Format: projects/{project_number}
- restricted_
services Sequence[str] GCP services that are subject to the Service Perimeter restrictions. Must contain a list of services. For example, if
storage.googleapis.com
is specified, access to the storage buckets inside the perimeter must meet the perimeter's access restrictions.- vpc_
accessible_ Serviceservices Perimeters Service Perimeter Spec Vpc Accessible Services Specifies how APIs are allowed to communicate within the Service Perimeter. Structure is documented below.
- access
Levels List<String> A list of AccessLevel resource names that allow resources within the ServicePerimeter to be accessed from the internet. AccessLevels listed must be in the same policy as this ServicePerimeter. Referencing a nonexistent AccessLevel is a syntax error. If no AccessLevel names are listed, resources within the perimeter can only be accessed via GCP calls with request origins within the perimeter. For Service Perimeter Bridge, must be empty. Format: accessPolicies/{policy_id}/accessLevels/{access_level_name}
- egress
Policies List<Property Map> List of EgressPolicies to apply to the perimeter. A perimeter may have multiple EgressPolicies, each of which is evaluated separately. Access is granted if any EgressPolicy grants it. Must be empty for a perimeter bridge. Structure is documented below.
- ingress
Policies List<Property Map> List of
IngressPolicies
to apply to the perimeter. A perimeter may have multipleIngressPolicies
, each of which is evaluated separately. Access is granted if anyIngress Policy
grants it. Must be empty for a perimeter bridge. Structure is documented below.- resources List<String>
A list of GCP resources that are inside of the service perimeter. Currently only projects are allowed. Format: projects/{project_number}
- restricted
Services List<String> GCP services that are subject to the Service Perimeter restrictions. Must contain a list of services. For example, if
storage.googleapis.com
is specified, access to the storage buckets inside the perimeter must meet the perimeter's access restrictions.- vpc
Accessible Property MapServices Specifies how APIs are allowed to communicate within the Service Perimeter. Structure is documented below.
ServicePerimetersServicePerimeterSpecEgressPolicy
- Egress
From ServicePerimeters Service Perimeter Spec Egress Policy Egress From Defines conditions on the source of a request causing this
EgressPolicy
to apply. Structure is documented below.- Egress
To ServicePerimeters Service Perimeter Spec Egress Policy Egress To Defines the conditions on the
ApiOperation
and destination resources that cause thisEgressPolicy
to apply. Structure is documented below.
- Egress
From ServicePerimeters Service Perimeter Spec Egress Policy Egress From Defines conditions on the source of a request causing this
EgressPolicy
to apply. Structure is documented below.- Egress
To ServicePerimeters Service Perimeter Spec Egress Policy Egress To Defines the conditions on the
ApiOperation
and destination resources that cause thisEgressPolicy
to apply. Structure is documented below.
- egress
From ServicePerimeters Service Perimeter Spec Egress Policy Egress From Defines conditions on the source of a request causing this
EgressPolicy
to apply. Structure is documented below.- egress
To ServicePerimeters Service Perimeter Spec Egress Policy Egress To Defines the conditions on the
ApiOperation
and destination resources that cause thisEgressPolicy
to apply. Structure is documented below.
- egress
From ServicePerimeters Service Perimeter Spec Egress Policy Egress From Defines conditions on the source of a request causing this
EgressPolicy
to apply. Structure is documented below.- egress
To ServicePerimeters Service Perimeter Spec Egress Policy Egress To Defines the conditions on the
ApiOperation
and destination resources that cause thisEgressPolicy
to apply. Structure is documented below.
- egress_
from ServicePerimeters Service Perimeter Spec Egress Policy Egress From Defines conditions on the source of a request causing this
EgressPolicy
to apply. Structure is documented below.- egress_
to ServicePerimeters Service Perimeter Spec Egress Policy Egress To Defines the conditions on the
ApiOperation
and destination resources that cause thisEgressPolicy
to apply. Structure is documented below.
- egress
From Property Map Defines conditions on the source of a request causing this
EgressPolicy
to apply. Structure is documented below.- egress
To Property Map Defines the conditions on the
ApiOperation
and destination resources that cause thisEgressPolicy
to apply. Structure is documented below.
ServicePerimetersServicePerimeterSpecEgressPolicyEgressFrom
- Identities List<string>
A list of identities that are allowed access through this
EgressPolicy
. Should be in the format of email address. The email address should represent individual user or service account only.- Identity
Type string Specifies the type of identities that are allowed access to outside the perimeter. If left unspecified, then members of
identities
field will be allowed access. Possible values areIDENTITY_TYPE_UNSPECIFIED
,ANY_IDENTITY
,ANY_USER_ACCOUNT
, andANY_SERVICE_ACCOUNT
.
- Identities []string
A list of identities that are allowed access through this
EgressPolicy
. Should be in the format of email address. The email address should represent individual user or service account only.- Identity
Type string Specifies the type of identities that are allowed access to outside the perimeter. If left unspecified, then members of
identities
field will be allowed access. Possible values areIDENTITY_TYPE_UNSPECIFIED
,ANY_IDENTITY
,ANY_USER_ACCOUNT
, andANY_SERVICE_ACCOUNT
.
- identities List<String>
A list of identities that are allowed access through this
EgressPolicy
. Should be in the format of email address. The email address should represent individual user or service account only.- identity
Type String Specifies the type of identities that are allowed access to outside the perimeter. If left unspecified, then members of
identities
field will be allowed access. Possible values areIDENTITY_TYPE_UNSPECIFIED
,ANY_IDENTITY
,ANY_USER_ACCOUNT
, andANY_SERVICE_ACCOUNT
.
- identities string[]
A list of identities that are allowed access through this
EgressPolicy
. Should be in the format of email address. The email address should represent individual user or service account only.- identity
Type string Specifies the type of identities that are allowed access to outside the perimeter. If left unspecified, then members of
identities
field will be allowed access. Possible values areIDENTITY_TYPE_UNSPECIFIED
,ANY_IDENTITY
,ANY_USER_ACCOUNT
, andANY_SERVICE_ACCOUNT
.
- identities Sequence[str]
A list of identities that are allowed access through this
EgressPolicy
. Should be in the format of email address. The email address should represent individual user or service account only.- identity_
type str Specifies the type of identities that are allowed access to outside the perimeter. If left unspecified, then members of
identities
field will be allowed access. Possible values areIDENTITY_TYPE_UNSPECIFIED
,ANY_IDENTITY
,ANY_USER_ACCOUNT
, andANY_SERVICE_ACCOUNT
.
- identities List<String>
A list of identities that are allowed access through this
EgressPolicy
. Should be in the format of email address. The email address should represent individual user or service account only.- identity
Type String Specifies the type of identities that are allowed access to outside the perimeter. If left unspecified, then members of
identities
field will be allowed access. Possible values areIDENTITY_TYPE_UNSPECIFIED
,ANY_IDENTITY
,ANY_USER_ACCOUNT
, andANY_SERVICE_ACCOUNT
.
ServicePerimetersServicePerimeterSpecEgressPolicyEgressTo
- External
Resources List<string> A list of external resources that are allowed to be accessed. A request matches if it contains an external resource in this list (Example: s3://bucket/path). Currently '*' is not allowed.
- Operations
List<Service
Perimeters Service Perimeter Spec Egress Policy Egress To Operation> A list of
ApiOperations
that this egress rule applies to. A request matches if it contains an operation/service in this list. Structure is documented below.- Resources List<string>
A list of resources, currently only projects in the form
projects/<projectnumber>
, that match this to stanza. A request matches if it contains a resource in this list. If * is specified for resources, then thisEgressTo
rule will authorize access to all resources outside the perimeter.
- External
Resources []string A list of external resources that are allowed to be accessed. A request matches if it contains an external resource in this list (Example: s3://bucket/path). Currently '*' is not allowed.
- Operations
[]Service
Perimeters Service Perimeter Spec Egress Policy Egress To Operation A list of
ApiOperations
that this egress rule applies to. A request matches if it contains an operation/service in this list. Structure is documented below.- Resources []string
A list of resources, currently only projects in the form
projects/<projectnumber>
, that match this to stanza. A request matches if it contains a resource in this list. If * is specified for resources, then thisEgressTo
rule will authorize access to all resources outside the perimeter.
- external
Resources List<String> A list of external resources that are allowed to be accessed. A request matches if it contains an external resource in this list (Example: s3://bucket/path). Currently '*' is not allowed.
- operations
List<Service
Perimeters Service Perimeter Spec Egress Policy Egress To Operation> A list of
ApiOperations
that this egress rule applies to. A request matches if it contains an operation/service in this list. Structure is documented below.- resources List<String>
A list of resources, currently only projects in the form
projects/<projectnumber>
, that match this to stanza. A request matches if it contains a resource in this list. If * is specified for resources, then thisEgressTo
rule will authorize access to all resources outside the perimeter.
- external
Resources string[] A list of external resources that are allowed to be accessed. A request matches if it contains an external resource in this list (Example: s3://bucket/path). Currently '*' is not allowed.
- operations
Service
Perimeters Service Perimeter Spec Egress Policy Egress To Operation[] A list of
ApiOperations
that this egress rule applies to. A request matches if it contains an operation/service in this list. Structure is documented below.- resources string[]
A list of resources, currently only projects in the form
projects/<projectnumber>
, that match this to stanza. A request matches if it contains a resource in this list. If * is specified for resources, then thisEgressTo
rule will authorize access to all resources outside the perimeter.
- external_
resources Sequence[str] A list of external resources that are allowed to be accessed. A request matches if it contains an external resource in this list (Example: s3://bucket/path). Currently '*' is not allowed.
- operations
Sequence[Service
Perimeters Service Perimeter Spec Egress Policy Egress To Operation] A list of
ApiOperations
that this egress rule applies to. A request matches if it contains an operation/service in this list. Structure is documented below.- resources Sequence[str]
A list of resources, currently only projects in the form
projects/<projectnumber>
, that match this to stanza. A request matches if it contains a resource in this list. If * is specified for resources, then thisEgressTo
rule will authorize access to all resources outside the perimeter.
- external
Resources List<String> A list of external resources that are allowed to be accessed. A request matches if it contains an external resource in this list (Example: s3://bucket/path). Currently '*' is not allowed.
- operations List<Property Map>
A list of
ApiOperations
that this egress rule applies to. A request matches if it contains an operation/service in this list. Structure is documented below.- resources List<String>
A list of resources, currently only projects in the form
projects/<projectnumber>
, that match this to stanza. A request matches if it contains a resource in this list. If * is specified for resources, then thisEgressTo
rule will authorize access to all resources outside the perimeter.
ServicePerimetersServicePerimeterSpecEgressPolicyEgressToOperation
- Method
Selectors List<ServicePerimeters Service Perimeter Spec Egress Policy Egress To Operation Method Selector> API methods or permissions to allow. Method or permission must belong to the service specified by
serviceName
field. A single MethodSelector entry with*
specified for themethod
field will allow all methods AND permissions for the service specified inserviceName
. Structure is documented below.- Service
Name string The name of the API whose methods or permissions the
IngressPolicy
orEgressPolicy
want to allow. A singleApiOperation
with serviceName field set to*
will allow all methods AND permissions for all services.
- Method
Selectors []ServicePerimeters Service Perimeter Spec Egress Policy Egress To Operation Method Selector API methods or permissions to allow. Method or permission must belong to the service specified by
serviceName
field. A single MethodSelector entry with*
specified for themethod
field will allow all methods AND permissions for the service specified inserviceName
. Structure is documented below.- Service
Name string The name of the API whose methods or permissions the
IngressPolicy
orEgressPolicy
want to allow. A singleApiOperation
with serviceName field set to*
will allow all methods AND permissions for all services.
- method
Selectors List<ServicePerimeters Service Perimeter Spec Egress Policy Egress To Operation Method Selector> API methods or permissions to allow. Method or permission must belong to the service specified by
serviceName
field. A single MethodSelector entry with*
specified for themethod
field will allow all methods AND permissions for the service specified inserviceName
. Structure is documented below.- service
Name String The name of the API whose methods or permissions the
IngressPolicy
orEgressPolicy
want to allow. A singleApiOperation
with serviceName field set to*
will allow all methods AND permissions for all services.
- method
Selectors ServicePerimeters Service Perimeter Spec Egress Policy Egress To Operation Method Selector[] API methods or permissions to allow. Method or permission must belong to the service specified by
serviceName
field. A single MethodSelector entry with*
specified for themethod
field will allow all methods AND permissions for the service specified inserviceName
. Structure is documented below.- service
Name string The name of the API whose methods or permissions the
IngressPolicy
orEgressPolicy
want to allow. A singleApiOperation
with serviceName field set to*
will allow all methods AND permissions for all services.
- method_
selectors Sequence[ServicePerimeters Service Perimeter Spec Egress Policy Egress To Operation Method Selector] API methods or permissions to allow. Method or permission must belong to the service specified by
serviceName
field. A single MethodSelector entry with*
specified for themethod
field will allow all methods AND permissions for the service specified inserviceName
. Structure is documented below.- service_
name str The name of the API whose methods or permissions the
IngressPolicy
orEgressPolicy
want to allow. A singleApiOperation
with serviceName field set to*
will allow all methods AND permissions for all services.
- method
Selectors List<Property Map> API methods or permissions to allow. Method or permission must belong to the service specified by
serviceName
field. A single MethodSelector entry with*
specified for themethod
field will allow all methods AND permissions for the service specified inserviceName
. Structure is documented below.- service
Name String The name of the API whose methods or permissions the
IngressPolicy
orEgressPolicy
want to allow. A singleApiOperation
with serviceName field set to*
will allow all methods AND permissions for all services.
ServicePerimetersServicePerimeterSpecEgressPolicyEgressToOperationMethodSelector
- Method string
Value for
method
should be a valid method name for the correspondingserviceName
inApiOperation
. If*
used as value for method, then ALL methods and permissions are allowed.- Permission string
Value for permission should be a valid Cloud IAM permission for the corresponding
serviceName
inApiOperation
.
- Method string
Value for
method
should be a valid method name for the correspondingserviceName
inApiOperation
. If*
used as value for method, then ALL methods and permissions are allowed.- Permission string
Value for permission should be a valid Cloud IAM permission for the corresponding
serviceName
inApiOperation
.
- method String
Value for
method
should be a valid method name for the correspondingserviceName
inApiOperation
. If*
used as value for method, then ALL methods and permissions are allowed.- permission String
Value for permission should be a valid Cloud IAM permission for the corresponding
serviceName
inApiOperation
.
- method string
Value for
method
should be a valid method name for the correspondingserviceName
inApiOperation
. If*
used as value for method, then ALL methods and permissions are allowed.- permission string
Value for permission should be a valid Cloud IAM permission for the corresponding
serviceName
inApiOperation
.
- method str
Value for
method
should be a valid method name for the correspondingserviceName
inApiOperation
. If*
used as value for method, then ALL methods and permissions are allowed.- permission str
Value for permission should be a valid Cloud IAM permission for the corresponding
serviceName
inApiOperation
.
- method String
Value for
method
should be a valid method name for the correspondingserviceName
inApiOperation
. If*
used as value for method, then ALL methods and permissions are allowed.- permission String
Value for permission should be a valid Cloud IAM permission for the corresponding
serviceName
inApiOperation
.
ServicePerimetersServicePerimeterSpecIngressPolicy
- Ingress
From ServicePerimeters Service Perimeter Spec Ingress Policy Ingress From Defines the conditions on the source of a request causing this
IngressPolicy
to apply. Structure is documented below.- Ingress
To ServicePerimeters Service Perimeter Spec Ingress Policy Ingress To Defines the conditions on the
ApiOperation
and request destination that cause thisIngressPolicy
to apply. Structure is documented below.
- Ingress
From ServicePerimeters Service Perimeter Spec Ingress Policy Ingress From Defines the conditions on the source of a request causing this
IngressPolicy
to apply. Structure is documented below.- Ingress
To ServicePerimeters Service Perimeter Spec Ingress Policy Ingress To Defines the conditions on the
ApiOperation
and request destination that cause thisIngressPolicy
to apply. Structure is documented below.
- ingress
From ServicePerimeters Service Perimeter Spec Ingress Policy Ingress From Defines the conditions on the source of a request causing this
IngressPolicy
to apply. Structure is documented below.- ingress
To ServicePerimeters Service Perimeter Spec Ingress Policy Ingress To Defines the conditions on the
ApiOperation
and request destination that cause thisIngressPolicy
to apply. Structure is documented below.
- ingress
From ServicePerimeters Service Perimeter Spec Ingress Policy Ingress From Defines the conditions on the source of a request causing this
IngressPolicy
to apply. Structure is documented below.- ingress
To ServicePerimeters Service Perimeter Spec Ingress Policy Ingress To Defines the conditions on the
ApiOperation
and request destination that cause thisIngressPolicy
to apply. Structure is documented below.
- ingress_
from ServicePerimeters Service Perimeter Spec Ingress Policy Ingress From Defines the conditions on the source of a request causing this
IngressPolicy
to apply. Structure is documented below.- ingress_
to ServicePerimeters Service Perimeter Spec Ingress Policy Ingress To Defines the conditions on the
ApiOperation
and request destination that cause thisIngressPolicy
to apply. Structure is documented below.
- ingress
From Property Map Defines the conditions on the source of a request causing this
IngressPolicy
to apply. Structure is documented below.- ingress
To Property Map Defines the conditions on the
ApiOperation
and request destination that cause thisIngressPolicy
to apply. Structure is documented below.
ServicePerimetersServicePerimeterSpecIngressPolicyIngressFrom
- Identities List<string>
A list of identities that are allowed access through this ingress policy. Should be in the format of email address. The email address should represent individual user or service account only.
- Identity
Type string Specifies the type of identities that are allowed access from outside the perimeter. If left unspecified, then members of
identities
field will be allowed access. Possible values areIDENTITY_TYPE_UNSPECIFIED
,ANY_IDENTITY
,ANY_USER_ACCOUNT
, andANY_SERVICE_ACCOUNT
.- Sources
List<Service
Perimeters Service Perimeter Spec Ingress Policy Ingress From Source> Sources that this
IngressPolicy
authorizes access from. Structure is documented below.
- Identities []string
A list of identities that are allowed access through this ingress policy. Should be in the format of email address. The email address should represent individual user or service account only.
- Identity
Type string Specifies the type of identities that are allowed access from outside the perimeter. If left unspecified, then members of
identities
field will be allowed access. Possible values areIDENTITY_TYPE_UNSPECIFIED
,ANY_IDENTITY
,ANY_USER_ACCOUNT
, andANY_SERVICE_ACCOUNT
.- Sources
[]Service
Perimeters Service Perimeter Spec Ingress Policy Ingress From Source Sources that this
IngressPolicy
authorizes access from. Structure is documented below.
- identities List<String>
A list of identities that are allowed access through this ingress policy. Should be in the format of email address. The email address should represent individual user or service account only.
- identity
Type String Specifies the type of identities that are allowed access from outside the perimeter. If left unspecified, then members of
identities
field will be allowed access. Possible values areIDENTITY_TYPE_UNSPECIFIED
,ANY_IDENTITY
,ANY_USER_ACCOUNT
, andANY_SERVICE_ACCOUNT
.- sources
List<Service
Perimeters Service Perimeter Spec Ingress Policy Ingress From Source> Sources that this
IngressPolicy
authorizes access from. Structure is documented below.
- identities string[]
A list of identities that are allowed access through this ingress policy. Should be in the format of email address. The email address should represent individual user or service account only.
- identity
Type string Specifies the type of identities that are allowed access from outside the perimeter. If left unspecified, then members of
identities
field will be allowed access. Possible values areIDENTITY_TYPE_UNSPECIFIED
,ANY_IDENTITY
,ANY_USER_ACCOUNT
, andANY_SERVICE_ACCOUNT
.- sources
Service
Perimeters Service Perimeter Spec Ingress Policy Ingress From Source[] Sources that this
IngressPolicy
authorizes access from. Structure is documented below.
- identities Sequence[str]
A list of identities that are allowed access through this ingress policy. Should be in the format of email address. The email address should represent individual user or service account only.
- identity_
type str Specifies the type of identities that are allowed access from outside the perimeter. If left unspecified, then members of
identities
field will be allowed access. Possible values areIDENTITY_TYPE_UNSPECIFIED
,ANY_IDENTITY
,ANY_USER_ACCOUNT
, andANY_SERVICE_ACCOUNT
.- sources
Sequence[Service
Perimeters Service Perimeter Spec Ingress Policy Ingress From Source] Sources that this
IngressPolicy
authorizes access from. Structure is documented below.
- identities List<String>
A list of identities that are allowed access through this ingress policy. Should be in the format of email address. The email address should represent individual user or service account only.
- identity
Type String Specifies the type of identities that are allowed access from outside the perimeter. If left unspecified, then members of
identities
field will be allowed access. Possible values areIDENTITY_TYPE_UNSPECIFIED
,ANY_IDENTITY
,ANY_USER_ACCOUNT
, andANY_SERVICE_ACCOUNT
.- sources List<Property Map>
Sources that this
IngressPolicy
authorizes access from. Structure is documented below.
ServicePerimetersServicePerimeterSpecIngressPolicyIngressFromSource
- Access
Level string An
AccessLevel
resource name that allow resources within theServicePerimeters
to be accessed from the internet.AccessLevels
listed must be in the same policy as thisServicePerimeter
. Referencing a nonexistentAccessLevel
will cause an error. If noAccessLevel
names are listed, resources within the perimeter can only be accessed via Google Cloud calls with request origins within the perimeter. ExampleaccessPolicies/MY_POLICY/accessLevels/MY_LEVEL.
If * is specified, then all IngressSources will be allowed.- Resource string
A Google Cloud resource that is allowed to ingress the perimeter. Requests from these resources will be allowed to access perimeter data. Currently only projects are allowed. Format
projects/{project_number}
The project may be in any Google Cloud organization, not just the organization that the perimeter is defined in.*
is not allowed, the case of allowing all Google Cloud resources only is not supported.
- Access
Level string An
AccessLevel
resource name that allow resources within theServicePerimeters
to be accessed from the internet.AccessLevels
listed must be in the same policy as thisServicePerimeter
. Referencing a nonexistentAccessLevel
will cause an error. If noAccessLevel
names are listed, resources within the perimeter can only be accessed via Google Cloud calls with request origins within the perimeter. ExampleaccessPolicies/MY_POLICY/accessLevels/MY_LEVEL.
If * is specified, then all IngressSources will be allowed.- Resource string
A Google Cloud resource that is allowed to ingress the perimeter. Requests from these resources will be allowed to access perimeter data. Currently only projects are allowed. Format
projects/{project_number}
The project may be in any Google Cloud organization, not just the organization that the perimeter is defined in.*
is not allowed, the case of allowing all Google Cloud resources only is not supported.
- access
Level String An
AccessLevel
resource name that allow resources within theServicePerimeters
to be accessed from the internet.AccessLevels
listed must be in the same policy as thisServicePerimeter
. Referencing a nonexistentAccessLevel
will cause an error. If noAccessLevel
names are listed, resources within the perimeter can only be accessed via Google Cloud calls with request origins within the perimeter. ExampleaccessPolicies/MY_POLICY/accessLevels/MY_LEVEL.
If * is specified, then all IngressSources will be allowed.- resource String
A Google Cloud resource that is allowed to ingress the perimeter. Requests from these resources will be allowed to access perimeter data. Currently only projects are allowed. Format
projects/{project_number}
The project may be in any Google Cloud organization, not just the organization that the perimeter is defined in.*
is not allowed, the case of allowing all Google Cloud resources only is not supported.
- access
Level string An
AccessLevel
resource name that allow resources within theServicePerimeters
to be accessed from the internet.AccessLevels
listed must be in the same policy as thisServicePerimeter
. Referencing a nonexistentAccessLevel
will cause an error. If noAccessLevel
names are listed, resources within the perimeter can only be accessed via Google Cloud calls with request origins within the perimeter. ExampleaccessPolicies/MY_POLICY/accessLevels/MY_LEVEL.
If * is specified, then all IngressSources will be allowed.- resource string
A Google Cloud resource that is allowed to ingress the perimeter. Requests from these resources will be allowed to access perimeter data. Currently only projects are allowed. Format
projects/{project_number}
The project may be in any Google Cloud organization, not just the organization that the perimeter is defined in.*
is not allowed, the case of allowing all Google Cloud resources only is not supported.
- access_
level str An
AccessLevel
resource name that allow resources within theServicePerimeters
to be accessed from the internet.AccessLevels
listed must be in the same policy as thisServicePerimeter
. Referencing a nonexistentAccessLevel
will cause an error. If noAccessLevel
names are listed, resources within the perimeter can only be accessed via Google Cloud calls with request origins within the perimeter. ExampleaccessPolicies/MY_POLICY/accessLevels/MY_LEVEL.
If * is specified, then all IngressSources will be allowed.- resource str
A Google Cloud resource that is allowed to ingress the perimeter. Requests from these resources will be allowed to access perimeter data. Currently only projects are allowed. Format
projects/{project_number}
The project may be in any Google Cloud organization, not just the organization that the perimeter is defined in.*
is not allowed, the case of allowing all Google Cloud resources only is not supported.
- access
Level String An
AccessLevel
resource name that allow resources within theServicePerimeters
to be accessed from the internet.AccessLevels
listed must be in the same policy as thisServicePerimeter
. Referencing a nonexistentAccessLevel
will cause an error. If noAccessLevel
names are listed, resources within the perimeter can only be accessed via Google Cloud calls with request origins within the perimeter. ExampleaccessPolicies/MY_POLICY/accessLevels/MY_LEVEL.
If * is specified, then all IngressSources will be allowed.- resource String
A Google Cloud resource that is allowed to ingress the perimeter. Requests from these resources will be allowed to access perimeter data. Currently only projects are allowed. Format
projects/{project_number}
The project may be in any Google Cloud organization, not just the organization that the perimeter is defined in.*
is not allowed, the case of allowing all Google Cloud resources only is not supported.
ServicePerimetersServicePerimeterSpecIngressPolicyIngressTo
- Operations
List<Service
Perimeters Service Perimeter Spec Ingress Policy Ingress To Operation> A list of
ApiOperations
the sources specified in correspondingIngressFrom
are allowed to perform in thisServicePerimeter
. Structure is documented below.- Resources List<string>
A list of resources, currently only projects in the form
projects/<projectnumber>
, protected by thisServicePerimeter
that are allowed to be accessed by sources defined in the correspondingIngressFrom
. A request matches if it contains a resource in this list. If*
is specified for resources, then thisIngressTo
rule will authorize access to all resources inside the perimeter, provided that the request also matches theoperations
field.
- Operations
[]Service
Perimeters Service Perimeter Spec Ingress Policy Ingress To Operation A list of
ApiOperations
the sources specified in correspondingIngressFrom
are allowed to perform in thisServicePerimeter
. Structure is documented below.- Resources []string
A list of resources, currently only projects in the form
projects/<projectnumber>
, protected by thisServicePerimeter
that are allowed to be accessed by sources defined in the correspondingIngressFrom
. A request matches if it contains a resource in this list. If*
is specified for resources, then thisIngressTo
rule will authorize access to all resources inside the perimeter, provided that the request also matches theoperations
field.
- operations
List<Service
Perimeters Service Perimeter Spec Ingress Policy Ingress To Operation> A list of
ApiOperations
the sources specified in correspondingIngressFrom
are allowed to perform in thisServicePerimeter
. Structure is documented below.- resources List<String>
A list of resources, currently only projects in the form
projects/<projectnumber>
, protected by thisServicePerimeter
that are allowed to be accessed by sources defined in the correspondingIngressFrom
. A request matches if it contains a resource in this list. If*
is specified for resources, then thisIngressTo
rule will authorize access to all resources inside the perimeter, provided that the request also matches theoperations
field.
- operations
Service
Perimeters Service Perimeter Spec Ingress Policy Ingress To Operation[] A list of
ApiOperations
the sources specified in correspondingIngressFrom
are allowed to perform in thisServicePerimeter
. Structure is documented below.- resources string[]
A list of resources, currently only projects in the form
projects/<projectnumber>
, protected by thisServicePerimeter
that are allowed to be accessed by sources defined in the correspondingIngressFrom
. A request matches if it contains a resource in this list. If*
is specified for resources, then thisIngressTo
rule will authorize access to all resources inside the perimeter, provided that the request also matches theoperations
field.
- operations
Sequence[Service
Perimeters Service Perimeter Spec Ingress Policy Ingress To Operation] A list of
ApiOperations
the sources specified in correspondingIngressFrom
are allowed to perform in thisServicePerimeter
. Structure is documented below.- resources Sequence[str]
A list of resources, currently only projects in the form
projects/<projectnumber>
, protected by thisServicePerimeter
that are allowed to be accessed by sources defined in the correspondingIngressFrom
. A request matches if it contains a resource in this list. If*
is specified for resources, then thisIngressTo
rule will authorize access to all resources inside the perimeter, provided that the request also matches theoperations
field.
- operations List<Property Map>
A list of
ApiOperations
the sources specified in correspondingIngressFrom
are allowed to perform in thisServicePerimeter
. Structure is documented below.- resources List<String>
A list of resources, currently only projects in the form
projects/<projectnumber>
, protected by thisServicePerimeter
that are allowed to be accessed by sources defined in the correspondingIngressFrom
. A request matches if it contains a resource in this list. If*
is specified for resources, then thisIngressTo
rule will authorize access to all resources inside the perimeter, provided that the request also matches theoperations
field.
ServicePerimetersServicePerimeterSpecIngressPolicyIngressToOperation
- Method
Selectors List<ServicePerimeters Service Perimeter Spec Ingress Policy Ingress To Operation Method Selector> API methods or permissions to allow. Method or permission must belong to the service specified by
serviceName
field. A single MethodSelector entry with*
specified for themethod
field will allow all methods AND permissions for the service specified inserviceName
. Structure is documented below.- Service
Name string The name of the API whose methods or permissions the
IngressPolicy
orEgressPolicy
want to allow. A singleApiOperation
with serviceName field set to*
will allow all methods AND permissions for all services.
- Method
Selectors []ServicePerimeters Service Perimeter Spec Ingress Policy Ingress To Operation Method Selector API methods or permissions to allow. Method or permission must belong to the service specified by
serviceName
field. A single MethodSelector entry with*
specified for themethod
field will allow all methods AND permissions for the service specified inserviceName
. Structure is documented below.- Service
Name string The name of the API whose methods or permissions the
IngressPolicy
orEgressPolicy
want to allow. A singleApiOperation
with serviceName field set to*
will allow all methods AND permissions for all services.
- method
Selectors List<ServicePerimeters Service Perimeter Spec Ingress Policy Ingress To Operation Method Selector> API methods or permissions to allow. Method or permission must belong to the service specified by
serviceName
field. A single MethodSelector entry with*
specified for themethod
field will allow all methods AND permissions for the service specified inserviceName
. Structure is documented below.- service
Name String The name of the API whose methods or permissions the
IngressPolicy
orEgressPolicy
want to allow. A singleApiOperation
with serviceName field set to*
will allow all methods AND permissions for all services.
- method
Selectors ServicePerimeters Service Perimeter Spec Ingress Policy Ingress To Operation Method Selector[] API methods or permissions to allow. Method or permission must belong to the service specified by
serviceName
field. A single MethodSelector entry with*
specified for themethod
field will allow all methods AND permissions for the service specified inserviceName
. Structure is documented below.- service
Name string The name of the API whose methods or permissions the
IngressPolicy
orEgressPolicy
want to allow. A singleApiOperation
with serviceName field set to*
will allow all methods AND permissions for all services.
- method_
selectors Sequence[ServicePerimeters Service Perimeter Spec Ingress Policy Ingress To Operation Method Selector] API methods or permissions to allow. Method or permission must belong to the service specified by
serviceName
field. A single MethodSelector entry with*
specified for themethod
field will allow all methods AND permissions for the service specified inserviceName
. Structure is documented below.- service_
name str The name of the API whose methods or permissions the
IngressPolicy
orEgressPolicy
want to allow. A singleApiOperation
with serviceName field set to*
will allow all methods AND permissions for all services.
- method
Selectors List<Property Map> API methods or permissions to allow. Method or permission must belong to the service specified by
serviceName
field. A single MethodSelector entry with*
specified for themethod
field will allow all methods AND permissions for the service specified inserviceName
. Structure is documented below.- service
Name String The name of the API whose methods or permissions the
IngressPolicy
orEgressPolicy
want to allow. A singleApiOperation
with serviceName field set to*
will allow all methods AND permissions for all services.
ServicePerimetersServicePerimeterSpecIngressPolicyIngressToOperationMethodSelector
- Method string
Value for
method
should be a valid method name for the correspondingserviceName
inApiOperation
. If*
used as value for method, then ALL methods and permissions are allowed.- Permission string
Value for permission should be a valid Cloud IAM permission for the corresponding
serviceName
inApiOperation
.
- Method string
Value for
method
should be a valid method name for the correspondingserviceName
inApiOperation
. If*
used as value for method, then ALL methods and permissions are allowed.- Permission string
Value for permission should be a valid Cloud IAM permission for the corresponding
serviceName
inApiOperation
.
- method String
Value for
method
should be a valid method name for the correspondingserviceName
inApiOperation
. If*
used as value for method, then ALL methods and permissions are allowed.- permission String
Value for permission should be a valid Cloud IAM permission for the corresponding
serviceName
inApiOperation
.
- method string
Value for
method
should be a valid method name for the correspondingserviceName
inApiOperation
. If*
used as value for method, then ALL methods and permissions are allowed.- permission string
Value for permission should be a valid Cloud IAM permission for the corresponding
serviceName
inApiOperation
.
- method str
Value for
method
should be a valid method name for the correspondingserviceName
inApiOperation
. If*
used as value for method, then ALL methods and permissions are allowed.- permission str
Value for permission should be a valid Cloud IAM permission for the corresponding
serviceName
inApiOperation
.
- method String
Value for
method
should be a valid method name for the correspondingserviceName
inApiOperation
. If*
used as value for method, then ALL methods and permissions are allowed.- permission String
Value for permission should be a valid Cloud IAM permission for the corresponding
serviceName
inApiOperation
.
ServicePerimetersServicePerimeterSpecVpcAccessibleServices
- Allowed
Services List<string> The list of APIs usable within the Service Perimeter. Must be empty unless
enableRestriction
is True.- Enable
Restriction bool Whether to restrict API calls within the Service Perimeter to the list of APIs specified in 'allowedServices'.
- Allowed
Services []string The list of APIs usable within the Service Perimeter. Must be empty unless
enableRestriction
is True.- Enable
Restriction bool Whether to restrict API calls within the Service Perimeter to the list of APIs specified in 'allowedServices'.
- allowed
Services List<String> The list of APIs usable within the Service Perimeter. Must be empty unless
enableRestriction
is True.- enable
Restriction Boolean Whether to restrict API calls within the Service Perimeter to the list of APIs specified in 'allowedServices'.
- allowed
Services string[] The list of APIs usable within the Service Perimeter. Must be empty unless
enableRestriction
is True.- enable
Restriction boolean Whether to restrict API calls within the Service Perimeter to the list of APIs specified in 'allowedServices'.
- allowed_
services Sequence[str] The list of APIs usable within the Service Perimeter. Must be empty unless
enableRestriction
is True.- enable_
restriction bool Whether to restrict API calls within the Service Perimeter to the list of APIs specified in 'allowedServices'.
- allowed
Services List<String> The list of APIs usable within the Service Perimeter. Must be empty unless
enableRestriction
is True.- enable
Restriction Boolean Whether to restrict API calls within the Service Perimeter to the list of APIs specified in 'allowedServices'.
ServicePerimetersServicePerimeterStatus
- Access
Levels List<string> A list of AccessLevel resource names that allow resources within the ServicePerimeter to be accessed from the internet. AccessLevels listed must be in the same policy as this ServicePerimeter. Referencing a nonexistent AccessLevel is a syntax error. If no AccessLevel names are listed, resources within the perimeter can only be accessed via GCP calls with request origins within the perimeter. For Service Perimeter Bridge, must be empty. Format: accessPolicies/{policy_id}/accessLevels/{access_level_name}
- Egress
Policies List<ServicePerimeters Service Perimeter Status Egress Policy> List of EgressPolicies to apply to the perimeter. A perimeter may have multiple EgressPolicies, each of which is evaluated separately. Access is granted if any EgressPolicy grants it. Must be empty for a perimeter bridge. Structure is documented below.
- Ingress
Policies List<ServicePerimeters Service Perimeter Status Ingress Policy> List of
IngressPolicies
to apply to the perimeter. A perimeter may have multipleIngressPolicies
, each of which is evaluated separately. Access is granted if anyIngress Policy
grants it. Must be empty for a perimeter bridge. Structure is documented below.- Resources List<string>
A list of GCP resources that are inside of the service perimeter. Currently only projects are allowed. Format: projects/{project_number}
- Restricted
Services List<string> GCP services that are subject to the Service Perimeter restrictions. Must contain a list of services. For example, if
storage.googleapis.com
is specified, access to the storage buckets inside the perimeter must meet the perimeter's access restrictions.- Vpc
Accessible ServiceServices Perimeters Service Perimeter Status Vpc Accessible Services Specifies how APIs are allowed to communicate within the Service Perimeter. Structure is documented below.
- Access
Levels []string A list of AccessLevel resource names that allow resources within the ServicePerimeter to be accessed from the internet. AccessLevels listed must be in the same policy as this ServicePerimeter. Referencing a nonexistent AccessLevel is a syntax error. If no AccessLevel names are listed, resources within the perimeter can only be accessed via GCP calls with request origins within the perimeter. For Service Perimeter Bridge, must be empty. Format: accessPolicies/{policy_id}/accessLevels/{access_level_name}
- Egress
Policies []ServicePerimeters Service Perimeter Status Egress Policy List of EgressPolicies to apply to the perimeter. A perimeter may have multiple EgressPolicies, each of which is evaluated separately. Access is granted if any EgressPolicy grants it. Must be empty for a perimeter bridge. Structure is documented below.
- Ingress
Policies []ServicePerimeters Service Perimeter Status Ingress Policy List of
IngressPolicies
to apply to the perimeter. A perimeter may have multipleIngressPolicies
, each of which is evaluated separately. Access is granted if anyIngress Policy
grants it. Must be empty for a perimeter bridge. Structure is documented below.- Resources []string
A list of GCP resources that are inside of the service perimeter. Currently only projects are allowed. Format: projects/{project_number}
- Restricted
Services []string GCP services that are subject to the Service Perimeter restrictions. Must contain a list of services. For example, if
storage.googleapis.com
is specified, access to the storage buckets inside the perimeter must meet the perimeter's access restrictions.- Vpc
Accessible ServiceServices Perimeters Service Perimeter Status Vpc Accessible Services Specifies how APIs are allowed to communicate within the Service Perimeter. Structure is documented below.
- access
Levels List<String> A list of AccessLevel resource names that allow resources within the ServicePerimeter to be accessed from the internet. AccessLevels listed must be in the same policy as this ServicePerimeter. Referencing a nonexistent AccessLevel is a syntax error. If no AccessLevel names are listed, resources within the perimeter can only be accessed via GCP calls with request origins within the perimeter. For Service Perimeter Bridge, must be empty. Format: accessPolicies/{policy_id}/accessLevels/{access_level_name}
- egress
Policies List<ServicePerimeters Service Perimeter Status Egress Policy> List of EgressPolicies to apply to the perimeter. A perimeter may have multiple EgressPolicies, each of which is evaluated separately. Access is granted if any EgressPolicy grants it. Must be empty for a perimeter bridge. Structure is documented below.
- ingress
Policies List<ServicePerimeters Service Perimeter Status Ingress Policy> List of
IngressPolicies
to apply to the perimeter. A perimeter may have multipleIngressPolicies
, each of which is evaluated separately. Access is granted if anyIngress Policy
grants it. Must be empty for a perimeter bridge. Structure is documented below.- resources List<String>
A list of GCP resources that are inside of the service perimeter. Currently only projects are allowed. Format: projects/{project_number}
- restricted
Services List<String> GCP services that are subject to the Service Perimeter restrictions. Must contain a list of services. For example, if
storage.googleapis.com
is specified, access to the storage buckets inside the perimeter must meet the perimeter's access restrictions.- vpc
Accessible ServiceServices Perimeters Service Perimeter Status Vpc Accessible Services Specifies how APIs are allowed to communicate within the Service Perimeter. Structure is documented below.
- access
Levels string[] A list of AccessLevel resource names that allow resources within the ServicePerimeter to be accessed from the internet. AccessLevels listed must be in the same policy as this ServicePerimeter. Referencing a nonexistent AccessLevel is a syntax error. If no AccessLevel names are listed, resources within the perimeter can only be accessed via GCP calls with request origins within the perimeter. For Service Perimeter Bridge, must be empty. Format: accessPolicies/{policy_id}/accessLevels/{access_level_name}
- egress
Policies ServicePerimeters Service Perimeter Status Egress Policy[] List of EgressPolicies to apply to the perimeter. A perimeter may have multiple EgressPolicies, each of which is evaluated separately. Access is granted if any EgressPolicy grants it. Must be empty for a perimeter bridge. Structure is documented below.
- ingress
Policies ServicePerimeters Service Perimeter Status Ingress Policy[] List of
IngressPolicies
to apply to the perimeter. A perimeter may have multipleIngressPolicies
, each of which is evaluated separately. Access is granted if anyIngress Policy
grants it. Must be empty for a perimeter bridge. Structure is documented below.- resources string[]
A list of GCP resources that are inside of the service perimeter. Currently only projects are allowed. Format: projects/{project_number}
- restricted
Services string[] GCP services that are subject to the Service Perimeter restrictions. Must contain a list of services. For example, if
storage.googleapis.com
is specified, access to the storage buckets inside the perimeter must meet the perimeter's access restrictions.- vpc
Accessible ServiceServices Perimeters Service Perimeter Status Vpc Accessible Services Specifies how APIs are allowed to communicate within the Service Perimeter. Structure is documented below.
- access_
levels Sequence[str] A list of AccessLevel resource names that allow resources within the ServicePerimeter to be accessed from the internet. AccessLevels listed must be in the same policy as this ServicePerimeter. Referencing a nonexistent AccessLevel is a syntax error. If no AccessLevel names are listed, resources within the perimeter can only be accessed via GCP calls with request origins within the perimeter. For Service Perimeter Bridge, must be empty. Format: accessPolicies/{policy_id}/accessLevels/{access_level_name}
- egress_
policies Sequence[ServicePerimeters Service Perimeter Status Egress Policy] List of EgressPolicies to apply to the perimeter. A perimeter may have multiple EgressPolicies, each of which is evaluated separately. Access is granted if any EgressPolicy grants it. Must be empty for a perimeter bridge. Structure is documented below.
- ingress_
policies Sequence[ServicePerimeters Service Perimeter Status Ingress Policy] List of
IngressPolicies
to apply to the perimeter. A perimeter may have multipleIngressPolicies
, each of which is evaluated separately. Access is granted if anyIngress Policy
grants it. Must be empty for a perimeter bridge. Structure is documented below.- resources Sequence[str]
A list of GCP resources that are inside of the service perimeter. Currently only projects are allowed. Format: projects/{project_number}
- restricted_
services Sequence[str] GCP services that are subject to the Service Perimeter restrictions. Must contain a list of services. For example, if
storage.googleapis.com
is specified, access to the storage buckets inside the perimeter must meet the perimeter's access restrictions.- vpc_
accessible_ Serviceservices Perimeters Service Perimeter Status Vpc Accessible Services Specifies how APIs are allowed to communicate within the Service Perimeter. Structure is documented below.
- access
Levels List<String> A list of AccessLevel resource names that allow resources within the ServicePerimeter to be accessed from the internet. AccessLevels listed must be in the same policy as this ServicePerimeter. Referencing a nonexistent AccessLevel is a syntax error. If no AccessLevel names are listed, resources within the perimeter can only be accessed via GCP calls with request origins within the perimeter. For Service Perimeter Bridge, must be empty. Format: accessPolicies/{policy_id}/accessLevels/{access_level_name}
- egress
Policies List<Property Map> List of EgressPolicies to apply to the perimeter. A perimeter may have multiple EgressPolicies, each of which is evaluated separately. Access is granted if any EgressPolicy grants it. Must be empty for a perimeter bridge. Structure is documented below.
- ingress
Policies List<Property Map> List of
IngressPolicies
to apply to the perimeter. A perimeter may have multipleIngressPolicies
, each of which is evaluated separately. Access is granted if anyIngress Policy
grants it. Must be empty for a perimeter bridge. Structure is documented below.- resources List<String>
A list of GCP resources that are inside of the service perimeter. Currently only projects are allowed. Format: projects/{project_number}
- restricted
Services List<String> GCP services that are subject to the Service Perimeter restrictions. Must contain a list of services. For example, if
storage.googleapis.com
is specified, access to the storage buckets inside the perimeter must meet the perimeter's access restrictions.- vpc
Accessible Property MapServices Specifies how APIs are allowed to communicate within the Service Perimeter. Structure is documented below.
ServicePerimetersServicePerimeterStatusEgressPolicy
- Egress
From ServicePerimeters Service Perimeter Status Egress Policy Egress From Defines conditions on the source of a request causing this
EgressPolicy
to apply. Structure is documented below.- Egress
To ServicePerimeters Service Perimeter Status Egress Policy Egress To Defines the conditions on the
ApiOperation
and destination resources that cause thisEgressPolicy
to apply. Structure is documented below.
- Egress
From ServicePerimeters Service Perimeter Status Egress Policy Egress From Defines conditions on the source of a request causing this
EgressPolicy
to apply. Structure is documented below.- Egress
To ServicePerimeters Service Perimeter Status Egress Policy Egress To Defines the conditions on the
ApiOperation
and destination resources that cause thisEgressPolicy
to apply. Structure is documented below.
- egress
From ServicePerimeters Service Perimeter Status Egress Policy Egress From Defines conditions on the source of a request causing this
EgressPolicy
to apply. Structure is documented below.- egress
To ServicePerimeters Service Perimeter Status Egress Policy Egress To Defines the conditions on the
ApiOperation
and destination resources that cause thisEgressPolicy
to apply. Structure is documented below.
- egress
From ServicePerimeters Service Perimeter Status Egress Policy Egress From Defines conditions on the source of a request causing this
EgressPolicy
to apply. Structure is documented below.- egress
To ServicePerimeters Service Perimeter Status Egress Policy Egress To Defines the conditions on the
ApiOperation
and destination resources that cause thisEgressPolicy
to apply. Structure is documented below.
- egress_
from ServicePerimeters Service Perimeter Status Egress Policy Egress From Defines conditions on the source of a request causing this
EgressPolicy
to apply. Structure is documented below.- egress_
to ServicePerimeters Service Perimeter Status Egress Policy Egress To Defines the conditions on the
ApiOperation
and destination resources that cause thisEgressPolicy
to apply. Structure is documented below.
- egress
From Property Map Defines conditions on the source of a request causing this
EgressPolicy
to apply. Structure is documented below.- egress
To Property Map Defines the conditions on the
ApiOperation
and destination resources that cause thisEgressPolicy
to apply. Structure is documented below.
ServicePerimetersServicePerimeterStatusEgressPolicyEgressFrom
- Identities List<string>
A list of identities that are allowed access through this
EgressPolicy
. Should be in the format of email address. The email address should represent individual user or service account only.- Identity
Type string Specifies the type of identities that are allowed access to outside the perimeter. If left unspecified, then members of
identities
field will be allowed access. Possible values areIDENTITY_TYPE_UNSPECIFIED
,ANY_IDENTITY
,ANY_USER_ACCOUNT
, andANY_SERVICE_ACCOUNT
.
- Identities []string
A list of identities that are allowed access through this
EgressPolicy
. Should be in the format of email address. The email address should represent individual user or service account only.- Identity
Type string Specifies the type of identities that are allowed access to outside the perimeter. If left unspecified, then members of
identities
field will be allowed access. Possible values areIDENTITY_TYPE_UNSPECIFIED
,ANY_IDENTITY
,ANY_USER_ACCOUNT
, andANY_SERVICE_ACCOUNT
.
- identities List<String>
A list of identities that are allowed access through this
EgressPolicy
. Should be in the format of email address. The email address should represent individual user or service account only.- identity
Type String Specifies the type of identities that are allowed access to outside the perimeter. If left unspecified, then members of
identities
field will be allowed access. Possible values areIDENTITY_TYPE_UNSPECIFIED
,ANY_IDENTITY
,ANY_USER_ACCOUNT
, andANY_SERVICE_ACCOUNT
.
- identities string[]
A list of identities that are allowed access through this
EgressPolicy
. Should be in the format of email address. The email address should represent individual user or service account only.- identity
Type string Specifies the type of identities that are allowed access to outside the perimeter. If left unspecified, then members of
identities
field will be allowed access. Possible values areIDENTITY_TYPE_UNSPECIFIED
,ANY_IDENTITY
,ANY_USER_ACCOUNT
, andANY_SERVICE_ACCOUNT
.
- identities Sequence[str]
A list of identities that are allowed access through this
EgressPolicy
. Should be in the format of email address. The email address should represent individual user or service account only.- identity_
type str Specifies the type of identities that are allowed access to outside the perimeter. If left unspecified, then members of
identities
field will be allowed access. Possible values areIDENTITY_TYPE_UNSPECIFIED
,ANY_IDENTITY
,ANY_USER_ACCOUNT
, andANY_SERVICE_ACCOUNT
.
- identities List<String>
A list of identities that are allowed access through this
EgressPolicy
. Should be in the format of email address. The email address should represent individual user or service account only.- identity
Type String Specifies the type of identities that are allowed access to outside the perimeter. If left unspecified, then members of
identities
field will be allowed access. Possible values areIDENTITY_TYPE_UNSPECIFIED
,ANY_IDENTITY
,ANY_USER_ACCOUNT
, andANY_SERVICE_ACCOUNT
.
ServicePerimetersServicePerimeterStatusEgressPolicyEgressTo
- External
Resources List<string> A list of external resources that are allowed to be accessed. A request matches if it contains an external resource in this list (Example: s3://bucket/path). Currently '*' is not allowed.
- Operations
List<Service
Perimeters Service Perimeter Status Egress Policy Egress To Operation> A list of
ApiOperations
that this egress rule applies to. A request matches if it contains an operation/service in this list. Structure is documented below.- Resources List<string>
A list of resources, currently only projects in the form
projects/<projectnumber>
, that match this to stanza. A request matches if it contains a resource in this list. If * is specified for resources, then thisEgressTo
rule will authorize access to all resources outside the perimeter.
- External
Resources []string A list of external resources that are allowed to be accessed. A request matches if it contains an external resource in this list (Example: s3://bucket/path). Currently '*' is not allowed.
- Operations
[]Service
Perimeters Service Perimeter Status Egress Policy Egress To Operation A list of
ApiOperations
that this egress rule applies to. A request matches if it contains an operation/service in this list. Structure is documented below.- Resources []string
A list of resources, currently only projects in the form
projects/<projectnumber>
, that match this to stanza. A request matches if it contains a resource in this list. If * is specified for resources, then thisEgressTo
rule will authorize access to all resources outside the perimeter.
- external
Resources List<String> A list of external resources that are allowed to be accessed. A request matches if it contains an external resource in this list (Example: s3://bucket/path). Currently '*' is not allowed.
- operations
List<Service
Perimeters Service Perimeter Status Egress Policy Egress To Operation> A list of
ApiOperations
that this egress rule applies to. A request matches if it contains an operation/service in this list. Structure is documented below.- resources List<String>
A list of resources, currently only projects in the form
projects/<projectnumber>
, that match this to stanza. A request matches if it contains a resource in this list. If * is specified for resources, then thisEgressTo
rule will authorize access to all resources outside the perimeter.
- external
Resources string[] A list of external resources that are allowed to be accessed. A request matches if it contains an external resource in this list (Example: s3://bucket/path). Currently '*' is not allowed.
- operations
Service
Perimeters Service Perimeter Status Egress Policy Egress To Operation[] A list of
ApiOperations
that this egress rule applies to. A request matches if it contains an operation/service in this list. Structure is documented below.- resources string[]
A list of resources, currently only projects in the form
projects/<projectnumber>
, that match this to stanza. A request matches if it contains a resource in this list. If * is specified for resources, then thisEgressTo
rule will authorize access to all resources outside the perimeter.
- external_
resources Sequence[str] A list of external resources that are allowed to be accessed. A request matches if it contains an external resource in this list (Example: s3://bucket/path). Currently '*' is not allowed.
- operations
Sequence[Service
Perimeters Service Perimeter Status Egress Policy Egress To Operation] A list of
ApiOperations
that this egress rule applies to. A request matches if it contains an operation/service in this list. Structure is documented below.- resources Sequence[str]
A list of resources, currently only projects in the form
projects/<projectnumber>
, that match this to stanza. A request matches if it contains a resource in this list. If * is specified for resources, then thisEgressTo
rule will authorize access to all resources outside the perimeter.
- external
Resources List<String> A list of external resources that are allowed to be accessed. A request matches if it contains an external resource in this list (Example: s3://bucket/path). Currently '*' is not allowed.
- operations List<Property Map>
A list of
ApiOperations
that this egress rule applies to. A request matches if it contains an operation/service in this list. Structure is documented below.- resources List<String>
A list of resources, currently only projects in the form
projects/<projectnumber>
, that match this to stanza. A request matches if it contains a resource in this list. If * is specified for resources, then thisEgressTo
rule will authorize access to all resources outside the perimeter.
ServicePerimetersServicePerimeterStatusEgressPolicyEgressToOperation
- Method
Selectors List<ServicePerimeters Service Perimeter Status Egress Policy Egress To Operation Method Selector> API methods or permissions to allow. Method or permission must belong to the service specified by
serviceName
field. A single MethodSelector entry with*
specified for themethod
field will allow all methods AND permissions for the service specified inserviceName
. Structure is documented below.- Service
Name string The name of the API whose methods or permissions the
IngressPolicy
orEgressPolicy
want to allow. A singleApiOperation
with serviceName field set to*
will allow all methods AND permissions for all services.
- Method
Selectors []ServicePerimeters Service Perimeter Status Egress Policy Egress To Operation Method Selector API methods or permissions to allow. Method or permission must belong to the service specified by
serviceName
field. A single MethodSelector entry with*
specified for themethod
field will allow all methods AND permissions for the service specified inserviceName
. Structure is documented below.- Service
Name string The name of the API whose methods or permissions the
IngressPolicy
orEgressPolicy
want to allow. A singleApiOperation
with serviceName field set to*
will allow all methods AND permissions for all services.
- method
Selectors List<ServicePerimeters Service Perimeter Status Egress Policy Egress To Operation Method Selector> API methods or permissions to allow. Method or permission must belong to the service specified by
serviceName
field. A single MethodSelector entry with*
specified for themethod
field will allow all methods AND permissions for the service specified inserviceName
. Structure is documented below.- service
Name String The name of the API whose methods or permissions the
IngressPolicy
orEgressPolicy
want to allow. A singleApiOperation
with serviceName field set to*
will allow all methods AND permissions for all services.
- method
Selectors ServicePerimeters Service Perimeter Status Egress Policy Egress To Operation Method Selector[] API methods or permissions to allow. Method or permission must belong to the service specified by
serviceName
field. A single MethodSelector entry with*
specified for themethod
field will allow all methods AND permissions for the service specified inserviceName
. Structure is documented below.- service
Name string The name of the API whose methods or permissions the
IngressPolicy
orEgressPolicy
want to allow. A singleApiOperation
with serviceName field set to*
will allow all methods AND permissions for all services.
- method_
selectors Sequence[ServicePerimeters Service Perimeter Status Egress Policy Egress To Operation Method Selector] API methods or permissions to allow. Method or permission must belong to the service specified by
serviceName
field. A single MethodSelector entry with*
specified for themethod
field will allow all methods AND permissions for the service specified inserviceName
. Structure is documented below.- service_
name str The name of the API whose methods or permissions the
IngressPolicy
orEgressPolicy
want to allow. A singleApiOperation
with serviceName field set to*
will allow all methods AND permissions for all services.
- method
Selectors List<Property Map> API methods or permissions to allow. Method or permission must belong to the service specified by
serviceName
field. A single MethodSelector entry with*
specified for themethod
field will allow all methods AND permissions for the service specified inserviceName
. Structure is documented below.- service
Name String The name of the API whose methods or permissions the
IngressPolicy
orEgressPolicy
want to allow. A singleApiOperation
with serviceName field set to*
will allow all methods AND permissions for all services.
ServicePerimetersServicePerimeterStatusEgressPolicyEgressToOperationMethodSelector
- Method string
Value for
method
should be a valid method name for the correspondingserviceName
inApiOperation
. If*
used as value for method, then ALL methods and permissions are allowed.- Permission string
Value for permission should be a valid Cloud IAM permission for the corresponding
serviceName
inApiOperation
.
- Method string
Value for
method
should be a valid method name for the correspondingserviceName
inApiOperation
. If*
used as value for method, then ALL methods and permissions are allowed.- Permission string
Value for permission should be a valid Cloud IAM permission for the corresponding
serviceName
inApiOperation
.
- method String
Value for
method
should be a valid method name for the correspondingserviceName
inApiOperation
. If*
used as value for method, then ALL methods and permissions are allowed.- permission String
Value for permission should be a valid Cloud IAM permission for the corresponding
serviceName
inApiOperation
.
- method string
Value for
method
should be a valid method name for the correspondingserviceName
inApiOperation
. If*
used as value for method, then ALL methods and permissions are allowed.- permission string
Value for permission should be a valid Cloud IAM permission for the corresponding
serviceName
inApiOperation
.
- method str
Value for
method
should be a valid method name for the correspondingserviceName
inApiOperation
. If*
used as value for method, then ALL methods and permissions are allowed.- permission str
Value for permission should be a valid Cloud IAM permission for the corresponding
serviceName
inApiOperation
.
- method String
Value for
method
should be a valid method name for the correspondingserviceName
inApiOperation
. If*
used as value for method, then ALL methods and permissions are allowed.- permission String
Value for permission should be a valid Cloud IAM permission for the corresponding
serviceName
inApiOperation
.
ServicePerimetersServicePerimeterStatusIngressPolicy
- Ingress
From ServicePerimeters Service Perimeter Status Ingress Policy Ingress From Defines the conditions on the source of a request causing this
IngressPolicy
to apply. Structure is documented below.- Ingress
To ServicePerimeters Service Perimeter Status Ingress Policy Ingress To Defines the conditions on the
ApiOperation
and request destination that cause thisIngressPolicy
to apply. Structure is documented below.
- Ingress
From ServicePerimeters Service Perimeter Status Ingress Policy Ingress From Defines the conditions on the source of a request causing this
IngressPolicy
to apply. Structure is documented below.- Ingress
To ServicePerimeters Service Perimeter Status Ingress Policy Ingress To Defines the conditions on the
ApiOperation
and request destination that cause thisIngressPolicy
to apply. Structure is documented below.
- ingress
From ServicePerimeters Service Perimeter Status Ingress Policy Ingress From Defines the conditions on the source of a request causing this
IngressPolicy
to apply. Structure is documented below.- ingress
To ServicePerimeters Service Perimeter Status Ingress Policy Ingress To Defines the conditions on the
ApiOperation
and request destination that cause thisIngressPolicy
to apply. Structure is documented below.
- ingress
From ServicePerimeters Service Perimeter Status Ingress Policy Ingress From Defines the conditions on the source of a request causing this
IngressPolicy
to apply. Structure is documented below.- ingress
To ServicePerimeters Service Perimeter Status Ingress Policy Ingress To Defines the conditions on the
ApiOperation
and request destination that cause thisIngressPolicy
to apply. Structure is documented below.
- ingress_
from ServicePerimeters Service Perimeter Status Ingress Policy Ingress From Defines the conditions on the source of a request causing this
IngressPolicy
to apply. Structure is documented below.- ingress_
to ServicePerimeters Service Perimeter Status Ingress Policy Ingress To Defines the conditions on the
ApiOperation
and request destination that cause thisIngressPolicy
to apply. Structure is documented below.
- ingress
From Property Map Defines the conditions on the source of a request causing this
IngressPolicy
to apply. Structure is documented below.- ingress
To Property Map Defines the conditions on the
ApiOperation
and request destination that cause thisIngressPolicy
to apply. Structure is documented below.
ServicePerimetersServicePerimeterStatusIngressPolicyIngressFrom
- Identities List<string>
A list of identities that are allowed access through this ingress policy. Should be in the format of email address. The email address should represent individual user or service account only.
- Identity
Type string Specifies the type of identities that are allowed access from outside the perimeter. If left unspecified, then members of
identities
field will be allowed access. Possible values areIDENTITY_TYPE_UNSPECIFIED
,ANY_IDENTITY
,ANY_USER_ACCOUNT
, andANY_SERVICE_ACCOUNT
.- Sources
List<Service
Perimeters Service Perimeter Status Ingress Policy Ingress From Source> Sources that this
IngressPolicy
authorizes access from. Structure is documented below.
- Identities []string
A list of identities that are allowed access through this ingress policy. Should be in the format of email address. The email address should represent individual user or service account only.
- Identity
Type string Specifies the type of identities that are allowed access from outside the perimeter. If left unspecified, then members of
identities
field will be allowed access. Possible values areIDENTITY_TYPE_UNSPECIFIED
,ANY_IDENTITY
,ANY_USER_ACCOUNT
, andANY_SERVICE_ACCOUNT
.- Sources
[]Service
Perimeters Service Perimeter Status Ingress Policy Ingress From Source Sources that this
IngressPolicy
authorizes access from. Structure is documented below.
- identities List<String>
A list of identities that are allowed access through this ingress policy. Should be in the format of email address. The email address should represent individual user or service account only.
- identity
Type String Specifies the type of identities that are allowed access from outside the perimeter. If left unspecified, then members of
identities
field will be allowed access. Possible values areIDENTITY_TYPE_UNSPECIFIED
,ANY_IDENTITY
,ANY_USER_ACCOUNT
, andANY_SERVICE_ACCOUNT
.- sources
List<Service
Perimeters Service Perimeter Status Ingress Policy Ingress From Source> Sources that this
IngressPolicy
authorizes access from. Structure is documented below.
- identities string[]
A list of identities that are allowed access through this ingress policy. Should be in the format of email address. The email address should represent individual user or service account only.
- identity
Type string Specifies the type of identities that are allowed access from outside the perimeter. If left unspecified, then members of
identities
field will be allowed access. Possible values areIDENTITY_TYPE_UNSPECIFIED
,ANY_IDENTITY
,ANY_USER_ACCOUNT
, andANY_SERVICE_ACCOUNT
.- sources
Service
Perimeters Service Perimeter Status Ingress Policy Ingress From Source[] Sources that this
IngressPolicy
authorizes access from. Structure is documented below.
- identities Sequence[str]
A list of identities that are allowed access through this ingress policy. Should be in the format of email address. The email address should represent individual user or service account only.
- identity_
type str Specifies the type of identities that are allowed access from outside the perimeter. If left unspecified, then members of
identities
field will be allowed access. Possible values areIDENTITY_TYPE_UNSPECIFIED
,ANY_IDENTITY
,ANY_USER_ACCOUNT
, andANY_SERVICE_ACCOUNT
.- sources
Sequence[Service
Perimeters Service Perimeter Status Ingress Policy Ingress From Source] Sources that this
IngressPolicy
authorizes access from. Structure is documented below.
- identities List<String>
A list of identities that are allowed access through this ingress policy. Should be in the format of email address. The email address should represent individual user or service account only.
- identity
Type String Specifies the type of identities that are allowed access from outside the perimeter. If left unspecified, then members of
identities
field will be allowed access. Possible values areIDENTITY_TYPE_UNSPECIFIED
,ANY_IDENTITY
,ANY_USER_ACCOUNT
, andANY_SERVICE_ACCOUNT
.- sources List<Property Map>
Sources that this
IngressPolicy
authorizes access from. Structure is documented below.
ServicePerimetersServicePerimeterStatusIngressPolicyIngressFromSource
- Access
Level string An
AccessLevel
resource name that allow resources within theServicePerimeters
to be accessed from the internet.AccessLevels
listed must be in the same policy as thisServicePerimeter
. Referencing a nonexistentAccessLevel
will cause an error. If noAccessLevel
names are listed, resources within the perimeter can only be accessed via Google Cloud calls with request origins within the perimeter. ExampleaccessPolicies/MY_POLICY/accessLevels/MY_LEVEL.
If * is specified, then all IngressSources will be allowed.- Resource string
A Google Cloud resource that is allowed to ingress the perimeter. Requests from these resources will be allowed to access perimeter data. Currently only projects are allowed. Format
projects/{project_number}
The project may be in any Google Cloud organization, not just the organization that the perimeter is defined in.*
is not allowed, the case of allowing all Google Cloud resources only is not supported.
- Access
Level string An
AccessLevel
resource name that allow resources within theServicePerimeters
to be accessed from the internet.AccessLevels
listed must be in the same policy as thisServicePerimeter
. Referencing a nonexistentAccessLevel
will cause an error. If noAccessLevel
names are listed, resources within the perimeter can only be accessed via Google Cloud calls with request origins within the perimeter. ExampleaccessPolicies/MY_POLICY/accessLevels/MY_LEVEL.
If * is specified, then all IngressSources will be allowed.- Resource string
A Google Cloud resource that is allowed to ingress the perimeter. Requests from these resources will be allowed to access perimeter data. Currently only projects are allowed. Format
projects/{project_number}
The project may be in any Google Cloud organization, not just the organization that the perimeter is defined in.*
is not allowed, the case of allowing all Google Cloud resources only is not supported.
- access
Level String An
AccessLevel
resource name that allow resources within theServicePerimeters
to be accessed from the internet.AccessLevels
listed must be in the same policy as thisServicePerimeter
. Referencing a nonexistentAccessLevel
will cause an error. If noAccessLevel
names are listed, resources within the perimeter can only be accessed via Google Cloud calls with request origins within the perimeter. ExampleaccessPolicies/MY_POLICY/accessLevels/MY_LEVEL.
If * is specified, then all IngressSources will be allowed.- resource String
A Google Cloud resource that is allowed to ingress the perimeter. Requests from these resources will be allowed to access perimeter data. Currently only projects are allowed. Format
projects/{project_number}
The project may be in any Google Cloud organization, not just the organization that the perimeter is defined in.*
is not allowed, the case of allowing all Google Cloud resources only is not supported.
- access
Level string An
AccessLevel
resource name that allow resources within theServicePerimeters
to be accessed from the internet.AccessLevels
listed must be in the same policy as thisServicePerimeter
. Referencing a nonexistentAccessLevel
will cause an error. If noAccessLevel
names are listed, resources within the perimeter can only be accessed via Google Cloud calls with request origins within the perimeter. ExampleaccessPolicies/MY_POLICY/accessLevels/MY_LEVEL.
If * is specified, then all IngressSources will be allowed.- resource string
A Google Cloud resource that is allowed to ingress the perimeter. Requests from these resources will be allowed to access perimeter data. Currently only projects are allowed. Format
projects/{project_number}
The project may be in any Google Cloud organization, not just the organization that the perimeter is defined in.*
is not allowed, the case of allowing all Google Cloud resources only is not supported.
- access_
level str An
AccessLevel
resource name that allow resources within theServicePerimeters
to be accessed from the internet.AccessLevels
listed must be in the same policy as thisServicePerimeter
. Referencing a nonexistentAccessLevel
will cause an error. If noAccessLevel
names are listed, resources within the perimeter can only be accessed via Google Cloud calls with request origins within the perimeter. ExampleaccessPolicies/MY_POLICY/accessLevels/MY_LEVEL.
If * is specified, then all IngressSources will be allowed.- resource str
A Google Cloud resource that is allowed to ingress the perimeter. Requests from these resources will be allowed to access perimeter data. Currently only projects are allowed. Format
projects/{project_number}
The project may be in any Google Cloud organization, not just the organization that the perimeter is defined in.*
is not allowed, the case of allowing all Google Cloud resources only is not supported.
- access
Level String An
AccessLevel
resource name that allow resources within theServicePerimeters
to be accessed from the internet.AccessLevels
listed must be in the same policy as thisServicePerimeter
. Referencing a nonexistentAccessLevel
will cause an error. If noAccessLevel
names are listed, resources within the perimeter can only be accessed via Google Cloud calls with request origins within the perimeter. ExampleaccessPolicies/MY_POLICY/accessLevels/MY_LEVEL.
If * is specified, then all IngressSources will be allowed.- resource String
A Google Cloud resource that is allowed to ingress the perimeter. Requests from these resources will be allowed to access perimeter data. Currently only projects are allowed. Format
projects/{project_number}
The project may be in any Google Cloud organization, not just the organization that the perimeter is defined in.*
is not allowed, the case of allowing all Google Cloud resources only is not supported.
ServicePerimetersServicePerimeterStatusIngressPolicyIngressTo
- Operations
List<Service
Perimeters Service Perimeter Status Ingress Policy Ingress To Operation> A list of
ApiOperations
the sources specified in correspondingIngressFrom
are allowed to perform in thisServicePerimeter
. Structure is documented below.- Resources List<string>
A list of resources, currently only projects in the form
projects/<projectnumber>
, protected by thisServicePerimeter
that are allowed to be accessed by sources defined in the correspondingIngressFrom
. A request matches if it contains a resource in this list. If*
is specified for resources, then thisIngressTo
rule will authorize access to all resources inside the perimeter, provided that the request also matches theoperations
field.
- Operations
[]Service
Perimeters Service Perimeter Status Ingress Policy Ingress To Operation A list of
ApiOperations
the sources specified in correspondingIngressFrom
are allowed to perform in thisServicePerimeter
. Structure is documented below.- Resources []string
A list of resources, currently only projects in the form
projects/<projectnumber>
, protected by thisServicePerimeter
that are allowed to be accessed by sources defined in the correspondingIngressFrom
. A request matches if it contains a resource in this list. If*
is specified for resources, then thisIngressTo
rule will authorize access to all resources inside the perimeter, provided that the request also matches theoperations
field.
- operations
List<Service
Perimeters Service Perimeter Status Ingress Policy Ingress To Operation> A list of
ApiOperations
the sources specified in correspondingIngressFrom
are allowed to perform in thisServicePerimeter
. Structure is documented below.- resources List<String>
A list of resources, currently only projects in the form
projects/<projectnumber>
, protected by thisServicePerimeter
that are allowed to be accessed by sources defined in the correspondingIngressFrom
. A request matches if it contains a resource in this list. If*
is specified for resources, then thisIngressTo
rule will authorize access to all resources inside the perimeter, provided that the request also matches theoperations
field.
- operations
Service
Perimeters Service Perimeter Status Ingress Policy Ingress To Operation[] A list of
ApiOperations
the sources specified in correspondingIngressFrom
are allowed to perform in thisServicePerimeter
. Structure is documented below.- resources string[]
A list of resources, currently only projects in the form
projects/<projectnumber>
, protected by thisServicePerimeter
that are allowed to be accessed by sources defined in the correspondingIngressFrom
. A request matches if it contains a resource in this list. If*
is specified for resources, then thisIngressTo
rule will authorize access to all resources inside the perimeter, provided that the request also matches theoperations
field.
- operations
Sequence[Service
Perimeters Service Perimeter Status Ingress Policy Ingress To Operation] A list of
ApiOperations
the sources specified in correspondingIngressFrom
are allowed to perform in thisServicePerimeter
. Structure is documented below.- resources Sequence[str]
A list of resources, currently only projects in the form
projects/<projectnumber>
, protected by thisServicePerimeter
that are allowed to be accessed by sources defined in the correspondingIngressFrom
. A request matches if it contains a resource in this list. If*
is specified for resources, then thisIngressTo
rule will authorize access to all resources inside the perimeter, provided that the request also matches theoperations
field.
- operations List<Property Map>
A list of
ApiOperations
the sources specified in correspondingIngressFrom
are allowed to perform in thisServicePerimeter
. Structure is documented below.- resources List<String>
A list of resources, currently only projects in the form
projects/<projectnumber>
, protected by thisServicePerimeter
that are allowed to be accessed by sources defined in the correspondingIngressFrom
. A request matches if it contains a resource in this list. If*
is specified for resources, then thisIngressTo
rule will authorize access to all resources inside the perimeter, provided that the request also matches theoperations
field.
ServicePerimetersServicePerimeterStatusIngressPolicyIngressToOperation
- Method
Selectors List<ServicePerimeters Service Perimeter Status Ingress Policy Ingress To Operation Method Selector> API methods or permissions to allow. Method or permission must belong to the service specified by
serviceName
field. A single MethodSelector entry with*
specified for themethod
field will allow all methods AND permissions for the service specified inserviceName
. Structure is documented below.- Service
Name string The name of the API whose methods or permissions the
IngressPolicy
orEgressPolicy
want to allow. A singleApiOperation
with serviceName field set to*
will allow all methods AND permissions for all services.
- Method
Selectors []ServicePerimeters Service Perimeter Status Ingress Policy Ingress To Operation Method Selector API methods or permissions to allow. Method or permission must belong to the service specified by
serviceName
field. A single MethodSelector entry with*
specified for themethod
field will allow all methods AND permissions for the service specified inserviceName
. Structure is documented below.- Service
Name string The name of the API whose methods or permissions the
IngressPolicy
orEgressPolicy
want to allow. A singleApiOperation
with serviceName field set to*
will allow all methods AND permissions for all services.
- method
Selectors List<ServicePerimeters Service Perimeter Status Ingress Policy Ingress To Operation Method Selector> API methods or permissions to allow. Method or permission must belong to the service specified by
serviceName
field. A single MethodSelector entry with*
specified for themethod
field will allow all methods AND permissions for the service specified inserviceName
. Structure is documented below.- service
Name String The name of the API whose methods or permissions the
IngressPolicy
orEgressPolicy
want to allow. A singleApiOperation
with serviceName field set to*
will allow all methods AND permissions for all services.
- method
Selectors ServicePerimeters Service Perimeter Status Ingress Policy Ingress To Operation Method Selector[] API methods or permissions to allow. Method or permission must belong to the service specified by
serviceName
field. A single MethodSelector entry with*
specified for themethod
field will allow all methods AND permissions for the service specified inserviceName
. Structure is documented below.- service
Name string The name of the API whose methods or permissions the
IngressPolicy
orEgressPolicy
want to allow. A singleApiOperation
with serviceName field set to*
will allow all methods AND permissions for all services.
- method_
selectors Sequence[ServicePerimeters Service Perimeter Status Ingress Policy Ingress To Operation Method Selector] API methods or permissions to allow. Method or permission must belong to the service specified by
serviceName
field. A single MethodSelector entry with*
specified for themethod
field will allow all methods AND permissions for the service specified inserviceName
. Structure is documented below.- service_
name str The name of the API whose methods or permissions the
IngressPolicy
orEgressPolicy
want to allow. A singleApiOperation
with serviceName field set to*
will allow all methods AND permissions for all services.
- method
Selectors List<Property Map> API methods or permissions to allow. Method or permission must belong to the service specified by
serviceName
field. A single MethodSelector entry with*
specified for themethod
field will allow all methods AND permissions for the service specified inserviceName
. Structure is documented below.- service
Name String The name of the API whose methods or permissions the
IngressPolicy
orEgressPolicy
want to allow. A singleApiOperation
with serviceName field set to*
will allow all methods AND permissions for all services.
ServicePerimetersServicePerimeterStatusIngressPolicyIngressToOperationMethodSelector
- Method string
Value for
method
should be a valid method name for the correspondingserviceName
inApiOperation
. If*
used as value for method, then ALL methods and permissions are allowed.- Permission string
Value for permission should be a valid Cloud IAM permission for the corresponding
serviceName
inApiOperation
.
- Method string
Value for
method
should be a valid method name for the correspondingserviceName
inApiOperation
. If*
used as value for method, then ALL methods and permissions are allowed.- Permission string
Value for permission should be a valid Cloud IAM permission for the corresponding
serviceName
inApiOperation
.
- method String
Value for
method
should be a valid method name for the correspondingserviceName
inApiOperation
. If*
used as value for method, then ALL methods and permissions are allowed.- permission String
Value for permission should be a valid Cloud IAM permission for the corresponding
serviceName
inApiOperation
.
- method string
Value for
method
should be a valid method name for the correspondingserviceName
inApiOperation
. If*
used as value for method, then ALL methods and permissions are allowed.- permission string
Value for permission should be a valid Cloud IAM permission for the corresponding
serviceName
inApiOperation
.
- method str
Value for
method
should be a valid method name for the correspondingserviceName
inApiOperation
. If*
used as value for method, then ALL methods and permissions are allowed.- permission str
Value for permission should be a valid Cloud IAM permission for the corresponding
serviceName
inApiOperation
.
- method String
Value for
method
should be a valid method name for the correspondingserviceName
inApiOperation
. If*
used as value for method, then ALL methods and permissions are allowed.- permission String
Value for permission should be a valid Cloud IAM permission for the corresponding
serviceName
inApiOperation
.
ServicePerimetersServicePerimeterStatusVpcAccessibleServices
- Allowed
Services List<string> The list of APIs usable within the Service Perimeter. Must be empty unless
enableRestriction
is True.- Enable
Restriction bool Whether to restrict API calls within the Service Perimeter to the list of APIs specified in 'allowedServices'.
- Allowed
Services []string The list of APIs usable within the Service Perimeter. Must be empty unless
enableRestriction
is True.- Enable
Restriction bool Whether to restrict API calls within the Service Perimeter to the list of APIs specified in 'allowedServices'.
- allowed
Services List<String> The list of APIs usable within the Service Perimeter. Must be empty unless
enableRestriction
is True.- enable
Restriction Boolean Whether to restrict API calls within the Service Perimeter to the list of APIs specified in 'allowedServices'.
- allowed
Services string[] The list of APIs usable within the Service Perimeter. Must be empty unless
enableRestriction
is True.- enable
Restriction boolean Whether to restrict API calls within the Service Perimeter to the list of APIs specified in 'allowedServices'.
- allowed_
services Sequence[str] The list of APIs usable within the Service Perimeter. Must be empty unless
enableRestriction
is True.- enable_
restriction bool Whether to restrict API calls within the Service Perimeter to the list of APIs specified in 'allowedServices'.
- allowed
Services List<String> The list of APIs usable within the Service Perimeter. Must be empty unless
enableRestriction
is True.- enable
Restriction Boolean Whether to restrict API calls within the Service Perimeter to the list of APIs specified in 'allowedServices'.
Import
ServicePerimeters can be imported using any of these accepted formats
$ pulumi import gcp:accesscontextmanager/servicePerimeters:ServicePerimeters default {{parent}}/servicePerimeters
$ pulumi import gcp:accesscontextmanager/servicePerimeters:ServicePerimeters default {{parent}}
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.