gcp.accesscontextmanager.ServicePerimeter
Explore with Pulumi AI
ServicePerimeter describes a set of GCP resources which can freely import and export data amongst themselves, but not export outside of the ServicePerimeter. If a request with a source within this ServicePerimeter has a target outside of the ServicePerimeter, the request will be blocked. Otherwise the request is allowed. There are two types of Service Perimeter
- Regular and Bridge. Regular Service Perimeters cannot overlap, a single GCP project can only belong to a single regular Service Perimeter. Service Perimeter Bridges can contain only GCP projects as members, a single GCP project may belong to multiple Service Perimeter Bridges.
To get more information about ServicePerimeter, see:
- API documentation
- How-to Guides
Warning: If you are using User ADCs (Application Default Credentials) with this resource, you must specify a
billing_project
and setuser_project_override
to true in the provider configuration. Otherwise the ACM API will return a 403 error. Your account must have theserviceusage.services.use
permission on thebilling_project
you defined.
Example Usage
Access Context Manager Service Perimeter Basic
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.ServicePerimeter("service-perimeter", {
parent: pulumi.interpolate`accessPolicies/${access_policy.name}`,
name: pulumi.interpolate`accessPolicies/${access_policy.name}/servicePerimeters/restrict_storage`,
title: "restrict_storage",
status: {
restrictedServices: ["storage.googleapis.com"],
},
});
const access_level = new gcp.accesscontextmanager.AccessLevel("access-level", {
parent: pulumi.interpolate`accessPolicies/${access_policy.name}`,
name: pulumi.interpolate`accessPolicies/${access_policy.name}/accessLevels/chromeos_no_lock`,
title: "chromeos_no_lock",
basic: {
conditions: [{
devicePolicy: {
requireScreenLock: false,
osConstraints: [{
osType: "DESKTOP_CHROME_OS",
}],
},
regions: [
"CH",
"IT",
"US",
],
}],
},
});
import pulumi
import pulumi_gcp as gcp
access_policy = gcp.accesscontextmanager.AccessPolicy("access-policy",
parent="organizations/123456789",
title="my policy")
service_perimeter = gcp.accesscontextmanager.ServicePerimeter("service-perimeter",
parent=access_policy.name.apply(lambda name: f"accessPolicies/{name}"),
name=access_policy.name.apply(lambda name: f"accessPolicies/{name}/servicePerimeters/restrict_storage"),
title="restrict_storage",
status={
"restricted_services": ["storage.googleapis.com"],
})
access_level = gcp.accesscontextmanager.AccessLevel("access-level",
parent=access_policy.name.apply(lambda name: f"accessPolicies/{name}"),
name=access_policy.name.apply(lambda name: f"accessPolicies/{name}/accessLevels/chromeos_no_lock"),
title="chromeos_no_lock",
basic={
"conditions": [{
"device_policy": {
"require_screen_lock": False,
"os_constraints": [{
"os_type": "DESKTOP_CHROME_OS",
}],
},
"regions": [
"CH",
"IT",
"US",
],
}],
})
package main
import (
"fmt"
"github.com/pulumi/pulumi-gcp/sdk/v8/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.NewServicePerimeter(ctx, "service-perimeter", &accesscontextmanager.ServicePerimeterArgs{
Parent: access_policy.Name.ApplyT(func(name string) (string, error) {
return fmt.Sprintf("accessPolicies/%v", name), nil
}).(pulumi.StringOutput),
Name: access_policy.Name.ApplyT(func(name string) (string, error) {
return fmt.Sprintf("accessPolicies/%v/servicePerimeters/restrict_storage", name), nil
}).(pulumi.StringOutput),
Title: pulumi.String("restrict_storage"),
Status: &accesscontextmanager.ServicePerimeterStatusArgs{
RestrictedServices: pulumi.StringArray{
pulumi.String("storage.googleapis.com"),
},
},
})
if err != nil {
return err
}
_, err = accesscontextmanager.NewAccessLevel(ctx, "access-level", &accesscontextmanager.AccessLevelArgs{
Parent: access_policy.Name.ApplyT(func(name string) (string, error) {
return fmt.Sprintf("accessPolicies/%v", name), nil
}).(pulumi.StringOutput),
Name: access_policy.Name.ApplyT(func(name string) (string, error) {
return fmt.Sprintf("accessPolicies/%v/accessLevels/chromeos_no_lock", name), nil
}).(pulumi.StringOutput),
Title: pulumi.String("chromeos_no_lock"),
Basic: &accesscontextmanager.AccessLevelBasicArgs{
Conditions: accesscontextmanager.AccessLevelBasicConditionArray{
&accesscontextmanager.AccessLevelBasicConditionArgs{
DevicePolicy: &accesscontextmanager.AccessLevelBasicConditionDevicePolicyArgs{
RequireScreenLock: pulumi.Bool(false),
OsConstraints: accesscontextmanager.AccessLevelBasicConditionDevicePolicyOsConstraintArray{
&accesscontextmanager.AccessLevelBasicConditionDevicePolicyOsConstraintArgs{
OsType: pulumi.String("DESKTOP_CHROME_OS"),
},
},
},
Regions: pulumi.StringArray{
pulumi.String("CH"),
pulumi.String("IT"),
pulumi.String("US"),
},
},
},
},
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Gcp = Pulumi.Gcp;
return await Deployment.RunAsync(() =>
{
var access_policy = new Gcp.AccessContextManager.AccessPolicy("access-policy", new()
{
Parent = "organizations/123456789",
Title = "my policy",
});
var service_perimeter = new Gcp.AccessContextManager.ServicePerimeter("service-perimeter", new()
{
Parent = access_policy.Name.Apply(name => $"accessPolicies/{name}"),
Name = access_policy.Name.Apply(name => $"accessPolicies/{name}/servicePerimeters/restrict_storage"),
Title = "restrict_storage",
Status = new Gcp.AccessContextManager.Inputs.ServicePerimeterStatusArgs
{
RestrictedServices = new[]
{
"storage.googleapis.com",
},
},
});
var access_level = new Gcp.AccessContextManager.AccessLevel("access-level", new()
{
Parent = access_policy.Name.Apply(name => $"accessPolicies/{name}"),
Name = access_policy.Name.Apply(name => $"accessPolicies/{name}/accessLevels/chromeos_no_lock"),
Title = "chromeos_no_lock",
Basic = new Gcp.AccessContextManager.Inputs.AccessLevelBasicArgs
{
Conditions = new[]
{
new Gcp.AccessContextManager.Inputs.AccessLevelBasicConditionArgs
{
DevicePolicy = new Gcp.AccessContextManager.Inputs.AccessLevelBasicConditionDevicePolicyArgs
{
RequireScreenLock = false,
OsConstraints = new[]
{
new Gcp.AccessContextManager.Inputs.AccessLevelBasicConditionDevicePolicyOsConstraintArgs
{
OsType = "DESKTOP_CHROME_OS",
},
},
},
Regions = new[]
{
"CH",
"IT",
"US",
},
},
},
},
});
});
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.ServicePerimeter;
import com.pulumi.gcp.accesscontextmanager.ServicePerimeterArgs;
import com.pulumi.gcp.accesscontextmanager.inputs.ServicePerimeterStatusArgs;
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 ServicePerimeter("service-perimeter", ServicePerimeterArgs.builder()
.parent(access_policy.name().applyValue(name -> String.format("accessPolicies/%s", name)))
.name(access_policy.name().applyValue(name -> String.format("accessPolicies/%s/servicePerimeters/restrict_storage", name)))
.title("restrict_storage")
.status(ServicePerimeterStatusArgs.builder()
.restrictedServices("storage.googleapis.com")
.build())
.build());
var access_level = new AccessLevel("access-level", AccessLevelArgs.builder()
.parent(access_policy.name().applyValue(name -> String.format("accessPolicies/%s", name)))
.name(access_policy.name().applyValue(name -> String.format("accessPolicies/%s/accessLevels/chromeos_no_lock", name)))
.title("chromeos_no_lock")
.basic(AccessLevelBasicArgs.builder()
.conditions(AccessLevelBasicConditionArgs.builder()
.devicePolicy(AccessLevelBasicConditionDevicePolicyArgs.builder()
.requireScreenLock(false)
.osConstraints(AccessLevelBasicConditionDevicePolicyOsConstraintArgs.builder()
.osType("DESKTOP_CHROME_OS")
.build())
.build())
.regions(
"CH",
"IT",
"US")
.build())
.build())
.build());
}
}
resources:
service-perimeter:
type: gcp:accesscontextmanager:ServicePerimeter
properties:
parent: accessPolicies/${["access-policy"].name}
name: accessPolicies/${["access-policy"].name}/servicePerimeters/restrict_storage
title: restrict_storage
status:
restrictedServices:
- storage.googleapis.com
access-level:
type: gcp:accesscontextmanager:AccessLevel
properties:
parent: accessPolicies/${["access-policy"].name}
name: accessPolicies/${["access-policy"].name}/accessLevels/chromeos_no_lock
title: chromeos_no_lock
basic:
conditions:
- devicePolicy:
requireScreenLock: false
osConstraints:
- osType: DESKTOP_CHROME_OS
regions:
- CH
- IT
- US
access-policy:
type: gcp:accesscontextmanager:AccessPolicy
properties:
parent: organizations/123456789
title: my policy
Access Context Manager Service Perimeter Secure Data Exchange
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 secure_data_exchange = new gcp.accesscontextmanager.ServicePerimeters("secure-data-exchange", {
parent: pulumi.interpolate`accessPolicies/${access_policy.name}`,
servicePerimeters: [
{
name: pulumi.interpolate`accessPolicies/${access_policy.name}/servicePerimeters/`,
title: "",
status: {
restrictedServices: ["storage.googleapis.com"],
},
},
{
name: pulumi.interpolate`accessPolicies/${access_policy.name}/servicePerimeters/`,
title: "",
status: {
restrictedServices: ["bigtable.googleapis.com"],
vpcAccessibleServices: {
enableRestriction: true,
allowedServices: ["bigquery.googleapis.com"],
},
},
},
],
});
const access_level = new gcp.accesscontextmanager.AccessLevel("access-level", {
parent: pulumi.interpolate`accessPolicies/${access_policy.name}`,
name: pulumi.interpolate`accessPolicies/${access_policy.name}/accessLevels/secure_data_exchange`,
title: "secure_data_exchange",
basic: {
conditions: [{
devicePolicy: {
requireScreenLock: false,
osConstraints: [{
osType: "DESKTOP_CHROME_OS",
}],
},
regions: [
"CH",
"IT",
"US",
],
}],
},
});
const test_access = new gcp.accesscontextmanager.ServicePerimeter("test-access", {
parent: `accessPolicies/${test_accessGoogleAccessContextManagerAccessPolicy.name}`,
name: `accessPolicies/${test_accessGoogleAccessContextManagerAccessPolicy.name}/servicePerimeters/%s`,
title: "%s",
perimeterType: "PERIMETER_TYPE_REGULAR",
status: {
restrictedServices: [
"bigquery.googleapis.com",
"storage.googleapis.com",
],
accessLevels: [access_level.name],
vpcAccessibleServices: {
enableRestriction: true,
allowedServices: [
"bigquery.googleapis.com",
"storage.googleapis.com",
],
},
ingressPolicies: [{
ingressFrom: {
sources: [{
accessLevel: test_accessGoogleAccessContextManagerAccessLevel.name,
}],
identityType: "ANY_IDENTITY",
},
ingressTo: {
resources: ["*"],
operations: [
{
serviceName: "bigquery.googleapis.com",
methodSelectors: [
{
method: "BigQueryStorage.ReadRows",
},
{
method: "TableService.ListTables",
},
{
permission: "bigquery.jobs.get",
},
],
},
{
serviceName: "storage.googleapis.com",
methodSelectors: [{
method: "google.storage.objects.create",
}],
},
],
},
}],
egressPolicies: [{
egressFrom: {
identityType: "ANY_USER_ACCOUNT",
},
}],
},
});
import pulumi
import pulumi_gcp as gcp
access_policy = gcp.accesscontextmanager.AccessPolicy("access-policy",
parent="organizations/123456789",
title="my policy")
secure_data_exchange = gcp.accesscontextmanager.ServicePerimeters("secure-data-exchange",
parent=access_policy.name.apply(lambda name: f"accessPolicies/{name}"),
service_perimeters=[
{
"name": access_policy.name.apply(lambda name: f"accessPolicies/{name}/servicePerimeters/"),
"title": "",
"status": {
"restricted_services": ["storage.googleapis.com"],
},
},
{
"name": access_policy.name.apply(lambda name: f"accessPolicies/{name}/servicePerimeters/"),
"title": "",
"status": {
"restricted_services": ["bigtable.googleapis.com"],
"vpc_accessible_services": {
"enable_restriction": True,
"allowed_services": ["bigquery.googleapis.com"],
},
},
},
])
access_level = gcp.accesscontextmanager.AccessLevel("access-level",
parent=access_policy.name.apply(lambda name: f"accessPolicies/{name}"),
name=access_policy.name.apply(lambda name: f"accessPolicies/{name}/accessLevels/secure_data_exchange"),
title="secure_data_exchange",
basic={
"conditions": [{
"device_policy": {
"require_screen_lock": False,
"os_constraints": [{
"os_type": "DESKTOP_CHROME_OS",
}],
},
"regions": [
"CH",
"IT",
"US",
],
}],
})
test_access = gcp.accesscontextmanager.ServicePerimeter("test-access",
parent=f"accessPolicies/{test_access_google_access_context_manager_access_policy['name']}",
name=f"accessPolicies/{test_access_google_access_context_manager_access_policy['name']}/servicePerimeters/%s",
title="%s",
perimeter_type="PERIMETER_TYPE_REGULAR",
status={
"restricted_services": [
"bigquery.googleapis.com",
"storage.googleapis.com",
],
"access_levels": [access_level.name],
"vpc_accessible_services": {
"enable_restriction": True,
"allowed_services": [
"bigquery.googleapis.com",
"storage.googleapis.com",
],
},
"ingress_policies": [{
"ingress_from": {
"sources": [{
"access_level": test_access_google_access_context_manager_access_level["name"],
}],
"identity_type": "ANY_IDENTITY",
},
"ingress_to": {
"resources": ["*"],
"operations": [
{
"service_name": "bigquery.googleapis.com",
"method_selectors": [
{
"method": "BigQueryStorage.ReadRows",
},
{
"method": "TableService.ListTables",
},
{
"permission": "bigquery.jobs.get",
},
],
},
{
"service_name": "storage.googleapis.com",
"method_selectors": [{
"method": "google.storage.objects.create",
}],
},
],
},
}],
"egress_policies": [{
"egress_from": {
"identity_type": "ANY_USER_ACCOUNT",
},
}],
})
package main
import (
"fmt"
"github.com/pulumi/pulumi-gcp/sdk/v8/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, "secure-data-exchange", &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),
Title: pulumi.String(""),
Status: &accesscontextmanager.ServicePerimetersServicePerimeterStatusArgs{
RestrictedServices: pulumi.StringArray{
pulumi.String("storage.googleapis.com"),
},
},
},
&accesscontextmanager.ServicePerimetersServicePerimeterArgs{
Name: access_policy.Name.ApplyT(func(name string) (string, error) {
return fmt.Sprintf("accessPolicies/%v/servicePerimeters/", name), nil
}).(pulumi.StringOutput),
Title: pulumi.String(""),
Status: &accesscontextmanager.ServicePerimetersServicePerimeterStatusArgs{
RestrictedServices: pulumi.StringArray{
pulumi.String("bigtable.googleapis.com"),
},
VpcAccessibleServices: &accesscontextmanager.ServicePerimetersServicePerimeterStatusVpcAccessibleServicesArgs{
EnableRestriction: pulumi.Bool(true),
AllowedServices: pulumi.StringArray{
pulumi.String("bigquery.googleapis.com"),
},
},
},
},
},
})
if err != nil {
return err
}
_, err = accesscontextmanager.NewAccessLevel(ctx, "access-level", &accesscontextmanager.AccessLevelArgs{
Parent: access_policy.Name.ApplyT(func(name string) (string, error) {
return fmt.Sprintf("accessPolicies/%v", name), nil
}).(pulumi.StringOutput),
Name: access_policy.Name.ApplyT(func(name string) (string, error) {
return fmt.Sprintf("accessPolicies/%v/accessLevels/secure_data_exchange", name), nil
}).(pulumi.StringOutput),
Title: pulumi.String("secure_data_exchange"),
Basic: &accesscontextmanager.AccessLevelBasicArgs{
Conditions: accesscontextmanager.AccessLevelBasicConditionArray{
&accesscontextmanager.AccessLevelBasicConditionArgs{
DevicePolicy: &accesscontextmanager.AccessLevelBasicConditionDevicePolicyArgs{
RequireScreenLock: pulumi.Bool(false),
OsConstraints: accesscontextmanager.AccessLevelBasicConditionDevicePolicyOsConstraintArray{
&accesscontextmanager.AccessLevelBasicConditionDevicePolicyOsConstraintArgs{
OsType: pulumi.String("DESKTOP_CHROME_OS"),
},
},
},
Regions: pulumi.StringArray{
pulumi.String("CH"),
pulumi.String("IT"),
pulumi.String("US"),
},
},
},
},
})
if err != nil {
return err
}
_, err = accesscontextmanager.NewServicePerimeter(ctx, "test-access", &accesscontextmanager.ServicePerimeterArgs{
Parent: pulumi.Sprintf("accessPolicies/%v", test_accessGoogleAccessContextManagerAccessPolicy.Name),
Name: pulumi.Sprintf("accessPolicies/%v%v", test_accessGoogleAccessContextManagerAccessPolicy.Name, "/servicePerimeters/%s"),
Title: pulumi.String("%s"),
PerimeterType: pulumi.String("PERIMETER_TYPE_REGULAR"),
Status: &accesscontextmanager.ServicePerimeterStatusArgs{
RestrictedServices: pulumi.StringArray{
pulumi.String("bigquery.googleapis.com"),
pulumi.String("storage.googleapis.com"),
},
AccessLevels: pulumi.StringArray{
access_level.Name,
},
VpcAccessibleServices: &accesscontextmanager.ServicePerimeterStatusVpcAccessibleServicesArgs{
EnableRestriction: pulumi.Bool(true),
AllowedServices: pulumi.StringArray{
pulumi.String("bigquery.googleapis.com"),
pulumi.String("storage.googleapis.com"),
},
},
IngressPolicies: accesscontextmanager.ServicePerimeterStatusIngressPolicyArray{
&accesscontextmanager.ServicePerimeterStatusIngressPolicyArgs{
IngressFrom: &accesscontextmanager.ServicePerimeterStatusIngressPolicyIngressFromArgs{
Sources: accesscontextmanager.ServicePerimeterStatusIngressPolicyIngressFromSourceArray{
&accesscontextmanager.ServicePerimeterStatusIngressPolicyIngressFromSourceArgs{
AccessLevel: pulumi.Any(test_accessGoogleAccessContextManagerAccessLevel.Name),
},
},
IdentityType: pulumi.String("ANY_IDENTITY"),
},
IngressTo: &accesscontextmanager.ServicePerimeterStatusIngressPolicyIngressToArgs{
Resources: pulumi.StringArray{
pulumi.String("*"),
},
Operations: accesscontextmanager.ServicePerimeterStatusIngressPolicyIngressToOperationArray{
&accesscontextmanager.ServicePerimeterStatusIngressPolicyIngressToOperationArgs{
ServiceName: pulumi.String("bigquery.googleapis.com"),
MethodSelectors: accesscontextmanager.ServicePerimeterStatusIngressPolicyIngressToOperationMethodSelectorArray{
&accesscontextmanager.ServicePerimeterStatusIngressPolicyIngressToOperationMethodSelectorArgs{
Method: pulumi.String("BigQueryStorage.ReadRows"),
},
&accesscontextmanager.ServicePerimeterStatusIngressPolicyIngressToOperationMethodSelectorArgs{
Method: pulumi.String("TableService.ListTables"),
},
&accesscontextmanager.ServicePerimeterStatusIngressPolicyIngressToOperationMethodSelectorArgs{
Permission: pulumi.String("bigquery.jobs.get"),
},
},
},
&accesscontextmanager.ServicePerimeterStatusIngressPolicyIngressToOperationArgs{
ServiceName: pulumi.String("storage.googleapis.com"),
MethodSelectors: accesscontextmanager.ServicePerimeterStatusIngressPolicyIngressToOperationMethodSelectorArray{
&accesscontextmanager.ServicePerimeterStatusIngressPolicyIngressToOperationMethodSelectorArgs{
Method: pulumi.String("google.storage.objects.create"),
},
},
},
},
},
},
},
EgressPolicies: accesscontextmanager.ServicePerimeterStatusEgressPolicyArray{
&accesscontextmanager.ServicePerimeterStatusEgressPolicyArgs{
EgressFrom: &accesscontextmanager.ServicePerimeterStatusEgressPolicyEgressFromArgs{
IdentityType: pulumi.String("ANY_USER_ACCOUNT"),
},
},
},
},
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Gcp = Pulumi.Gcp;
return await Deployment.RunAsync(() =>
{
var access_policy = new Gcp.AccessContextManager.AccessPolicy("access-policy", new()
{
Parent = "organizations/123456789",
Title = "my policy",
});
var secure_data_exchange = new Gcp.AccessContextManager.ServicePerimeters("secure-data-exchange", 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/"),
Title = "",
Status = new Gcp.AccessContextManager.Inputs.ServicePerimetersServicePerimeterStatusArgs
{
RestrictedServices = new[]
{
"storage.googleapis.com",
},
},
},
new Gcp.AccessContextManager.Inputs.ServicePerimetersServicePerimeterArgs
{
Name = access_policy.Name.Apply(name => $"accessPolicies/{name}/servicePerimeters/"),
Title = "",
Status = new Gcp.AccessContextManager.Inputs.ServicePerimetersServicePerimeterStatusArgs
{
RestrictedServices = new[]
{
"bigtable.googleapis.com",
},
VpcAccessibleServices = new Gcp.AccessContextManager.Inputs.ServicePerimetersServicePerimeterStatusVpcAccessibleServicesArgs
{
EnableRestriction = true,
AllowedServices = new[]
{
"bigquery.googleapis.com",
},
},
},
},
},
});
var access_level = new Gcp.AccessContextManager.AccessLevel("access-level", new()
{
Parent = access_policy.Name.Apply(name => $"accessPolicies/{name}"),
Name = access_policy.Name.Apply(name => $"accessPolicies/{name}/accessLevels/secure_data_exchange"),
Title = "secure_data_exchange",
Basic = new Gcp.AccessContextManager.Inputs.AccessLevelBasicArgs
{
Conditions = new[]
{
new Gcp.AccessContextManager.Inputs.AccessLevelBasicConditionArgs
{
DevicePolicy = new Gcp.AccessContextManager.Inputs.AccessLevelBasicConditionDevicePolicyArgs
{
RequireScreenLock = false,
OsConstraints = new[]
{
new Gcp.AccessContextManager.Inputs.AccessLevelBasicConditionDevicePolicyOsConstraintArgs
{
OsType = "DESKTOP_CHROME_OS",
},
},
},
Regions = new[]
{
"CH",
"IT",
"US",
},
},
},
},
});
var test_access = new Gcp.AccessContextManager.ServicePerimeter("test-access", new()
{
Parent = $"accessPolicies/{test_accessGoogleAccessContextManagerAccessPolicy.Name}",
Name = $"accessPolicies/{test_accessGoogleAccessContextManagerAccessPolicy.Name}/servicePerimeters/%s",
Title = "%s",
PerimeterType = "PERIMETER_TYPE_REGULAR",
Status = new Gcp.AccessContextManager.Inputs.ServicePerimeterStatusArgs
{
RestrictedServices = new[]
{
"bigquery.googleapis.com",
"storage.googleapis.com",
},
AccessLevels = new[]
{
access_level.Name,
},
VpcAccessibleServices = new Gcp.AccessContextManager.Inputs.ServicePerimeterStatusVpcAccessibleServicesArgs
{
EnableRestriction = true,
AllowedServices = new[]
{
"bigquery.googleapis.com",
"storage.googleapis.com",
},
},
IngressPolicies = new[]
{
new Gcp.AccessContextManager.Inputs.ServicePerimeterStatusIngressPolicyArgs
{
IngressFrom = new Gcp.AccessContextManager.Inputs.ServicePerimeterStatusIngressPolicyIngressFromArgs
{
Sources = new[]
{
new Gcp.AccessContextManager.Inputs.ServicePerimeterStatusIngressPolicyIngressFromSourceArgs
{
AccessLevel = test_accessGoogleAccessContextManagerAccessLevel.Name,
},
},
IdentityType = "ANY_IDENTITY",
},
IngressTo = new Gcp.AccessContextManager.Inputs.ServicePerimeterStatusIngressPolicyIngressToArgs
{
Resources = new[]
{
"*",
},
Operations = new[]
{
new Gcp.AccessContextManager.Inputs.ServicePerimeterStatusIngressPolicyIngressToOperationArgs
{
ServiceName = "bigquery.googleapis.com",
MethodSelectors = new[]
{
new Gcp.AccessContextManager.Inputs.ServicePerimeterStatusIngressPolicyIngressToOperationMethodSelectorArgs
{
Method = "BigQueryStorage.ReadRows",
},
new Gcp.AccessContextManager.Inputs.ServicePerimeterStatusIngressPolicyIngressToOperationMethodSelectorArgs
{
Method = "TableService.ListTables",
},
new Gcp.AccessContextManager.Inputs.ServicePerimeterStatusIngressPolicyIngressToOperationMethodSelectorArgs
{
Permission = "bigquery.jobs.get",
},
},
},
new Gcp.AccessContextManager.Inputs.ServicePerimeterStatusIngressPolicyIngressToOperationArgs
{
ServiceName = "storage.googleapis.com",
MethodSelectors = new[]
{
new Gcp.AccessContextManager.Inputs.ServicePerimeterStatusIngressPolicyIngressToOperationMethodSelectorArgs
{
Method = "google.storage.objects.create",
},
},
},
},
},
},
},
EgressPolicies = new[]
{
new Gcp.AccessContextManager.Inputs.ServicePerimeterStatusEgressPolicyArgs
{
EgressFrom = new Gcp.AccessContextManager.Inputs.ServicePerimeterStatusEgressPolicyEgressFromArgs
{
IdentityType = "ANY_USER_ACCOUNT",
},
},
},
},
});
});
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.inputs.ServicePerimetersServicePerimeterStatusVpcAccessibleServicesArgs;
import com.pulumi.gcp.accesscontextmanager.AccessLevel;
import com.pulumi.gcp.accesscontextmanager.AccessLevelArgs;
import com.pulumi.gcp.accesscontextmanager.inputs.AccessLevelBasicArgs;
import com.pulumi.gcp.accesscontextmanager.ServicePerimeter;
import com.pulumi.gcp.accesscontextmanager.ServicePerimeterArgs;
import com.pulumi.gcp.accesscontextmanager.inputs.ServicePerimeterStatusArgs;
import com.pulumi.gcp.accesscontextmanager.inputs.ServicePerimeterStatusVpcAccessibleServicesArgs;
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 secure_data_exchange = new ServicePerimeters("secure-data-exchange", 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)))
.title("")
.status(ServicePerimetersServicePerimeterStatusArgs.builder()
.restrictedServices("storage.googleapis.com")
.build())
.build(),
ServicePerimetersServicePerimeterArgs.builder()
.name(access_policy.name().applyValue(name -> String.format("accessPolicies/%s/servicePerimeters/", name)))
.title("")
.status(ServicePerimetersServicePerimeterStatusArgs.builder()
.restrictedServices("bigtable.googleapis.com")
.vpcAccessibleServices(ServicePerimetersServicePerimeterStatusVpcAccessibleServicesArgs.builder()
.enableRestriction(true)
.allowedServices("bigquery.googleapis.com")
.build())
.build())
.build())
.build());
var access_level = new AccessLevel("access-level", AccessLevelArgs.builder()
.parent(access_policy.name().applyValue(name -> String.format("accessPolicies/%s", name)))
.name(access_policy.name().applyValue(name -> String.format("accessPolicies/%s/accessLevels/secure_data_exchange", name)))
.title("secure_data_exchange")
.basic(AccessLevelBasicArgs.builder()
.conditions(AccessLevelBasicConditionArgs.builder()
.devicePolicy(AccessLevelBasicConditionDevicePolicyArgs.builder()
.requireScreenLock(false)
.osConstraints(AccessLevelBasicConditionDevicePolicyOsConstraintArgs.builder()
.osType("DESKTOP_CHROME_OS")
.build())
.build())
.regions(
"CH",
"IT",
"US")
.build())
.build())
.build());
var test_access = new ServicePerimeter("test-access", ServicePerimeterArgs.builder()
.parent(String.format("accessPolicies/%s", test_accessGoogleAccessContextManagerAccessPolicy.name()))
.name(String.format("accessPolicies/%s/servicePerimeters/%s", test_accessGoogleAccessContextManagerAccessPolicy.name()))
.title("%s")
.perimeterType("PERIMETER_TYPE_REGULAR")
.status(ServicePerimeterStatusArgs.builder()
.restrictedServices(
"bigquery.googleapis.com",
"storage.googleapis.com")
.accessLevels(access_level.name())
.vpcAccessibleServices(ServicePerimeterStatusVpcAccessibleServicesArgs.builder()
.enableRestriction(true)
.allowedServices(
"bigquery.googleapis.com",
"storage.googleapis.com")
.build())
.ingressPolicies(ServicePerimeterStatusIngressPolicyArgs.builder()
.ingressFrom(ServicePerimeterStatusIngressPolicyIngressFromArgs.builder()
.sources(ServicePerimeterStatusIngressPolicyIngressFromSourceArgs.builder()
.accessLevel(test_accessGoogleAccessContextManagerAccessLevel.name())
.build())
.identityType("ANY_IDENTITY")
.build())
.ingressTo(ServicePerimeterStatusIngressPolicyIngressToArgs.builder()
.resources("*")
.operations(
ServicePerimeterStatusIngressPolicyIngressToOperationArgs.builder()
.serviceName("bigquery.googleapis.com")
.methodSelectors(
ServicePerimeterStatusIngressPolicyIngressToOperationMethodSelectorArgs.builder()
.method("BigQueryStorage.ReadRows")
.build(),
ServicePerimeterStatusIngressPolicyIngressToOperationMethodSelectorArgs.builder()
.method("TableService.ListTables")
.build(),
ServicePerimeterStatusIngressPolicyIngressToOperationMethodSelectorArgs.builder()
.permission("bigquery.jobs.get")
.build())
.build(),
ServicePerimeterStatusIngressPolicyIngressToOperationArgs.builder()
.serviceName("storage.googleapis.com")
.methodSelectors(ServicePerimeterStatusIngressPolicyIngressToOperationMethodSelectorArgs.builder()
.method("google.storage.objects.create")
.build())
.build())
.build())
.build())
.egressPolicies(ServicePerimeterStatusEgressPolicyArgs.builder()
.egressFrom(ServicePerimeterStatusEgressPolicyEgressFromArgs.builder()
.identityType("ANY_USER_ACCOUNT")
.build())
.build())
.build())
.build());
}
}
resources:
secure-data-exchange:
type: gcp:accesscontextmanager:ServicePerimeters
properties:
parent: accessPolicies/${["access-policy"].name}
servicePerimeters:
- name: accessPolicies/${["access-policy"].name}/servicePerimeters/
title:
status:
restrictedServices:
- storage.googleapis.com
- name: accessPolicies/${["access-policy"].name}/servicePerimeters/
title:
status:
restrictedServices:
- bigtable.googleapis.com
vpcAccessibleServices:
enableRestriction: true
allowedServices:
- bigquery.googleapis.com
access-level:
type: gcp:accesscontextmanager:AccessLevel
properties:
parent: accessPolicies/${["access-policy"].name}
name: accessPolicies/${["access-policy"].name}/accessLevels/secure_data_exchange
title: secure_data_exchange
basic:
conditions:
- devicePolicy:
requireScreenLock: false
osConstraints:
- osType: DESKTOP_CHROME_OS
regions:
- CH
- IT
- US
access-policy:
type: gcp:accesscontextmanager:AccessPolicy
properties:
parent: organizations/123456789
title: my policy
test-access:
type: gcp:accesscontextmanager:ServicePerimeter
properties:
parent: accessPolicies/${["test-accessGoogleAccessContextManagerAccessPolicy"].name}
name: accessPolicies/${["test-accessGoogleAccessContextManagerAccessPolicy"].name}/servicePerimeters/%s
title: '%s'
perimeterType: PERIMETER_TYPE_REGULAR
status:
restrictedServices:
- bigquery.googleapis.com
- storage.googleapis.com
accessLevels:
- ${["access-level"].name}
vpcAccessibleServices:
enableRestriction: true
allowedServices:
- bigquery.googleapis.com
- storage.googleapis.com
ingressPolicies:
- ingressFrom:
sources:
- accessLevel: ${["test-accessGoogleAccessContextManagerAccessLevel"].name}
identityType: ANY_IDENTITY
ingressTo:
resources:
- '*'
operations:
- serviceName: bigquery.googleapis.com
methodSelectors:
- method: BigQueryStorage.ReadRows
- method: TableService.ListTables
- permission: bigquery.jobs.get
- serviceName: storage.googleapis.com
methodSelectors:
- method: google.storage.objects.create
egressPolicies:
- egressFrom:
identityType: ANY_USER_ACCOUNT
Access Context Manager Service Perimeter Dry-Run
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.ServicePerimeter("service-perimeter", {
parent: pulumi.interpolate`accessPolicies/${access_policy.name}`,
name: pulumi.interpolate`accessPolicies/${access_policy.name}/servicePerimeters/restrict_bigquery_dryrun_storage`,
title: "restrict_bigquery_dryrun_storage",
status: {
restrictedServices: ["bigquery.googleapis.com"],
},
spec: {
restrictedServices: ["storage.googleapis.com"],
},
useExplicitDryRunSpec: true,
});
import pulumi
import pulumi_gcp as gcp
access_policy = gcp.accesscontextmanager.AccessPolicy("access-policy",
parent="organizations/123456789",
title="my policy")
service_perimeter = gcp.accesscontextmanager.ServicePerimeter("service-perimeter",
parent=access_policy.name.apply(lambda name: f"accessPolicies/{name}"),
name=access_policy.name.apply(lambda name: f"accessPolicies/{name}/servicePerimeters/restrict_bigquery_dryrun_storage"),
title="restrict_bigquery_dryrun_storage",
status={
"restricted_services": ["bigquery.googleapis.com"],
},
spec={
"restricted_services": ["storage.googleapis.com"],
},
use_explicit_dry_run_spec=True)
package main
import (
"fmt"
"github.com/pulumi/pulumi-gcp/sdk/v8/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.NewServicePerimeter(ctx, "service-perimeter", &accesscontextmanager.ServicePerimeterArgs{
Parent: access_policy.Name.ApplyT(func(name string) (string, error) {
return fmt.Sprintf("accessPolicies/%v", name), nil
}).(pulumi.StringOutput),
Name: access_policy.Name.ApplyT(func(name string) (string, error) {
return fmt.Sprintf("accessPolicies/%v/servicePerimeters/restrict_bigquery_dryrun_storage", name), nil
}).(pulumi.StringOutput),
Title: pulumi.String("restrict_bigquery_dryrun_storage"),
Status: &accesscontextmanager.ServicePerimeterStatusArgs{
RestrictedServices: pulumi.StringArray{
pulumi.String("bigquery.googleapis.com"),
},
},
Spec: &accesscontextmanager.ServicePerimeterSpecArgs{
RestrictedServices: pulumi.StringArray{
pulumi.String("storage.googleapis.com"),
},
},
UseExplicitDryRunSpec: pulumi.Bool(true),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Gcp = Pulumi.Gcp;
return await Deployment.RunAsync(() =>
{
var access_policy = new Gcp.AccessContextManager.AccessPolicy("access-policy", new()
{
Parent = "organizations/123456789",
Title = "my policy",
});
var service_perimeter = new Gcp.AccessContextManager.ServicePerimeter("service-perimeter", new()
{
Parent = access_policy.Name.Apply(name => $"accessPolicies/{name}"),
Name = access_policy.Name.Apply(name => $"accessPolicies/{name}/servicePerimeters/restrict_bigquery_dryrun_storage"),
Title = "restrict_bigquery_dryrun_storage",
Status = new Gcp.AccessContextManager.Inputs.ServicePerimeterStatusArgs
{
RestrictedServices = new[]
{
"bigquery.googleapis.com",
},
},
Spec = new Gcp.AccessContextManager.Inputs.ServicePerimeterSpecArgs
{
RestrictedServices = new[]
{
"storage.googleapis.com",
},
},
UseExplicitDryRunSpec = true,
});
});
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.ServicePerimeter;
import com.pulumi.gcp.accesscontextmanager.ServicePerimeterArgs;
import com.pulumi.gcp.accesscontextmanager.inputs.ServicePerimeterStatusArgs;
import com.pulumi.gcp.accesscontextmanager.inputs.ServicePerimeterSpecArgs;
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 ServicePerimeter("service-perimeter", ServicePerimeterArgs.builder()
.parent(access_policy.name().applyValue(name -> String.format("accessPolicies/%s", name)))
.name(access_policy.name().applyValue(name -> String.format("accessPolicies/%s/servicePerimeters/restrict_bigquery_dryrun_storage", name)))
.title("restrict_bigquery_dryrun_storage")
.status(ServicePerimeterStatusArgs.builder()
.restrictedServices("bigquery.googleapis.com")
.build())
.spec(ServicePerimeterSpecArgs.builder()
.restrictedServices("storage.googleapis.com")
.build())
.useExplicitDryRunSpec(true)
.build());
}
}
resources:
service-perimeter:
type: gcp:accesscontextmanager:ServicePerimeter
properties:
parent: accessPolicies/${["access-policy"].name}
name: accessPolicies/${["access-policy"].name}/servicePerimeters/restrict_bigquery_dryrun_storage
title: restrict_bigquery_dryrun_storage
status:
restrictedServices:
- bigquery.googleapis.com
spec:
restrictedServices:
- storage.googleapis.com
useExplicitDryRunSpec: true
access-policy:
type: gcp:accesscontextmanager:AccessPolicy
properties:
parent: organizations/123456789
title: my policy
Create ServicePerimeter Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new ServicePerimeter(name: string, args: ServicePerimeterArgs, opts?: CustomResourceOptions);
@overload
def ServicePerimeter(resource_name: str,
args: ServicePerimeterArgs,
opts: Optional[ResourceOptions] = None)
@overload
def ServicePerimeter(resource_name: str,
opts: Optional[ResourceOptions] = None,
parent: Optional[str] = None,
title: Optional[str] = None,
description: Optional[str] = None,
name: Optional[str] = None,
perimeter_type: Optional[str] = None,
spec: Optional[ServicePerimeterSpecArgs] = None,
status: Optional[ServicePerimeterStatusArgs] = None,
use_explicit_dry_run_spec: Optional[bool] = None)
func NewServicePerimeter(ctx *Context, name string, args ServicePerimeterArgs, opts ...ResourceOption) (*ServicePerimeter, error)
public ServicePerimeter(string name, ServicePerimeterArgs args, CustomResourceOptions? opts = null)
public ServicePerimeter(String name, ServicePerimeterArgs args)
public ServicePerimeter(String name, ServicePerimeterArgs args, CustomResourceOptions options)
type: gcp:accesscontextmanager:ServicePerimeter
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args ServicePerimeterArgs
- 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 ServicePerimeterArgs
- 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 ServicePerimeterArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ServicePerimeterArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args ServicePerimeterArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var servicePerimeterResource = new Gcp.AccessContextManager.ServicePerimeter("servicePerimeterResource", new()
{
Parent = "string",
Title = "string",
Description = "string",
Name = "string",
PerimeterType = "string",
Spec = new Gcp.AccessContextManager.Inputs.ServicePerimeterSpecArgs
{
AccessLevels = new[]
{
"string",
},
EgressPolicies = new[]
{
new Gcp.AccessContextManager.Inputs.ServicePerimeterSpecEgressPolicyArgs
{
EgressFrom = new Gcp.AccessContextManager.Inputs.ServicePerimeterSpecEgressPolicyEgressFromArgs
{
Identities = new[]
{
"string",
},
IdentityType = "string",
SourceRestriction = "string",
Sources = new[]
{
new Gcp.AccessContextManager.Inputs.ServicePerimeterSpecEgressPolicyEgressFromSourceArgs
{
AccessLevel = "string",
},
},
},
EgressTo = new Gcp.AccessContextManager.Inputs.ServicePerimeterSpecEgressPolicyEgressToArgs
{
ExternalResources = new[]
{
"string",
},
Operations = new[]
{
new Gcp.AccessContextManager.Inputs.ServicePerimeterSpecEgressPolicyEgressToOperationArgs
{
MethodSelectors = new[]
{
new Gcp.AccessContextManager.Inputs.ServicePerimeterSpecEgressPolicyEgressToOperationMethodSelectorArgs
{
Method = "string",
Permission = "string",
},
},
ServiceName = "string",
},
},
Resources = new[]
{
"string",
},
},
},
},
IngressPolicies = new[]
{
new Gcp.AccessContextManager.Inputs.ServicePerimeterSpecIngressPolicyArgs
{
IngressFrom = new Gcp.AccessContextManager.Inputs.ServicePerimeterSpecIngressPolicyIngressFromArgs
{
Identities = new[]
{
"string",
},
IdentityType = "string",
Sources = new[]
{
new Gcp.AccessContextManager.Inputs.ServicePerimeterSpecIngressPolicyIngressFromSourceArgs
{
AccessLevel = "string",
Resource = "string",
},
},
},
IngressTo = new Gcp.AccessContextManager.Inputs.ServicePerimeterSpecIngressPolicyIngressToArgs
{
Operations = new[]
{
new Gcp.AccessContextManager.Inputs.ServicePerimeterSpecIngressPolicyIngressToOperationArgs
{
MethodSelectors = new[]
{
new Gcp.AccessContextManager.Inputs.ServicePerimeterSpecIngressPolicyIngressToOperationMethodSelectorArgs
{
Method = "string",
Permission = "string",
},
},
ServiceName = "string",
},
},
Resources = new[]
{
"string",
},
},
},
},
Resources = new[]
{
"string",
},
RestrictedServices = new[]
{
"string",
},
VpcAccessibleServices = new Gcp.AccessContextManager.Inputs.ServicePerimeterSpecVpcAccessibleServicesArgs
{
AllowedServices = new[]
{
"string",
},
EnableRestriction = false,
},
},
Status = new Gcp.AccessContextManager.Inputs.ServicePerimeterStatusArgs
{
AccessLevels = new[]
{
"string",
},
EgressPolicies = new[]
{
new Gcp.AccessContextManager.Inputs.ServicePerimeterStatusEgressPolicyArgs
{
EgressFrom = new Gcp.AccessContextManager.Inputs.ServicePerimeterStatusEgressPolicyEgressFromArgs
{
Identities = new[]
{
"string",
},
IdentityType = "string",
SourceRestriction = "string",
Sources = new[]
{
new Gcp.AccessContextManager.Inputs.ServicePerimeterStatusEgressPolicyEgressFromSourceArgs
{
AccessLevel = "string",
},
},
},
EgressTo = new Gcp.AccessContextManager.Inputs.ServicePerimeterStatusEgressPolicyEgressToArgs
{
ExternalResources = new[]
{
"string",
},
Operations = new[]
{
new Gcp.AccessContextManager.Inputs.ServicePerimeterStatusEgressPolicyEgressToOperationArgs
{
MethodSelectors = new[]
{
new Gcp.AccessContextManager.Inputs.ServicePerimeterStatusEgressPolicyEgressToOperationMethodSelectorArgs
{
Method = "string",
Permission = "string",
},
},
ServiceName = "string",
},
},
Resources = new[]
{
"string",
},
},
},
},
IngressPolicies = new[]
{
new Gcp.AccessContextManager.Inputs.ServicePerimeterStatusIngressPolicyArgs
{
IngressFrom = new Gcp.AccessContextManager.Inputs.ServicePerimeterStatusIngressPolicyIngressFromArgs
{
Identities = new[]
{
"string",
},
IdentityType = "string",
Sources = new[]
{
new Gcp.AccessContextManager.Inputs.ServicePerimeterStatusIngressPolicyIngressFromSourceArgs
{
AccessLevel = "string",
Resource = "string",
},
},
},
IngressTo = new Gcp.AccessContextManager.Inputs.ServicePerimeterStatusIngressPolicyIngressToArgs
{
Operations = new[]
{
new Gcp.AccessContextManager.Inputs.ServicePerimeterStatusIngressPolicyIngressToOperationArgs
{
MethodSelectors = new[]
{
new Gcp.AccessContextManager.Inputs.ServicePerimeterStatusIngressPolicyIngressToOperationMethodSelectorArgs
{
Method = "string",
Permission = "string",
},
},
ServiceName = "string",
},
},
Resources = new[]
{
"string",
},
},
},
},
Resources = new[]
{
"string",
},
RestrictedServices = new[]
{
"string",
},
VpcAccessibleServices = new Gcp.AccessContextManager.Inputs.ServicePerimeterStatusVpcAccessibleServicesArgs
{
AllowedServices = new[]
{
"string",
},
EnableRestriction = false,
},
},
UseExplicitDryRunSpec = false,
});
example, err := accesscontextmanager.NewServicePerimeter(ctx, "servicePerimeterResource", &accesscontextmanager.ServicePerimeterArgs{
Parent: pulumi.String("string"),
Title: pulumi.String("string"),
Description: pulumi.String("string"),
Name: pulumi.String("string"),
PerimeterType: pulumi.String("string"),
Spec: &accesscontextmanager.ServicePerimeterSpecArgs{
AccessLevels: pulumi.StringArray{
pulumi.String("string"),
},
EgressPolicies: accesscontextmanager.ServicePerimeterSpecEgressPolicyArray{
&accesscontextmanager.ServicePerimeterSpecEgressPolicyArgs{
EgressFrom: &accesscontextmanager.ServicePerimeterSpecEgressPolicyEgressFromArgs{
Identities: pulumi.StringArray{
pulumi.String("string"),
},
IdentityType: pulumi.String("string"),
SourceRestriction: pulumi.String("string"),
Sources: accesscontextmanager.ServicePerimeterSpecEgressPolicyEgressFromSourceArray{
&accesscontextmanager.ServicePerimeterSpecEgressPolicyEgressFromSourceArgs{
AccessLevel: pulumi.String("string"),
},
},
},
EgressTo: &accesscontextmanager.ServicePerimeterSpecEgressPolicyEgressToArgs{
ExternalResources: pulumi.StringArray{
pulumi.String("string"),
},
Operations: accesscontextmanager.ServicePerimeterSpecEgressPolicyEgressToOperationArray{
&accesscontextmanager.ServicePerimeterSpecEgressPolicyEgressToOperationArgs{
MethodSelectors: accesscontextmanager.ServicePerimeterSpecEgressPolicyEgressToOperationMethodSelectorArray{
&accesscontextmanager.ServicePerimeterSpecEgressPolicyEgressToOperationMethodSelectorArgs{
Method: pulumi.String("string"),
Permission: pulumi.String("string"),
},
},
ServiceName: pulumi.String("string"),
},
},
Resources: pulumi.StringArray{
pulumi.String("string"),
},
},
},
},
IngressPolicies: accesscontextmanager.ServicePerimeterSpecIngressPolicyArray{
&accesscontextmanager.ServicePerimeterSpecIngressPolicyArgs{
IngressFrom: &accesscontextmanager.ServicePerimeterSpecIngressPolicyIngressFromArgs{
Identities: pulumi.StringArray{
pulumi.String("string"),
},
IdentityType: pulumi.String("string"),
Sources: accesscontextmanager.ServicePerimeterSpecIngressPolicyIngressFromSourceArray{
&accesscontextmanager.ServicePerimeterSpecIngressPolicyIngressFromSourceArgs{
AccessLevel: pulumi.String("string"),
Resource: pulumi.String("string"),
},
},
},
IngressTo: &accesscontextmanager.ServicePerimeterSpecIngressPolicyIngressToArgs{
Operations: accesscontextmanager.ServicePerimeterSpecIngressPolicyIngressToOperationArray{
&accesscontextmanager.ServicePerimeterSpecIngressPolicyIngressToOperationArgs{
MethodSelectors: accesscontextmanager.ServicePerimeterSpecIngressPolicyIngressToOperationMethodSelectorArray{
&accesscontextmanager.ServicePerimeterSpecIngressPolicyIngressToOperationMethodSelectorArgs{
Method: pulumi.String("string"),
Permission: pulumi.String("string"),
},
},
ServiceName: pulumi.String("string"),
},
},
Resources: pulumi.StringArray{
pulumi.String("string"),
},
},
},
},
Resources: pulumi.StringArray{
pulumi.String("string"),
},
RestrictedServices: pulumi.StringArray{
pulumi.String("string"),
},
VpcAccessibleServices: &accesscontextmanager.ServicePerimeterSpecVpcAccessibleServicesArgs{
AllowedServices: pulumi.StringArray{
pulumi.String("string"),
},
EnableRestriction: pulumi.Bool(false),
},
},
Status: &accesscontextmanager.ServicePerimeterStatusArgs{
AccessLevels: pulumi.StringArray{
pulumi.String("string"),
},
EgressPolicies: accesscontextmanager.ServicePerimeterStatusEgressPolicyArray{
&accesscontextmanager.ServicePerimeterStatusEgressPolicyArgs{
EgressFrom: &accesscontextmanager.ServicePerimeterStatusEgressPolicyEgressFromArgs{
Identities: pulumi.StringArray{
pulumi.String("string"),
},
IdentityType: pulumi.String("string"),
SourceRestriction: pulumi.String("string"),
Sources: accesscontextmanager.ServicePerimeterStatusEgressPolicyEgressFromSourceArray{
&accesscontextmanager.ServicePerimeterStatusEgressPolicyEgressFromSourceArgs{
AccessLevel: pulumi.String("string"),
},
},
},
EgressTo: &accesscontextmanager.ServicePerimeterStatusEgressPolicyEgressToArgs{
ExternalResources: pulumi.StringArray{
pulumi.String("string"),
},
Operations: accesscontextmanager.ServicePerimeterStatusEgressPolicyEgressToOperationArray{
&accesscontextmanager.ServicePerimeterStatusEgressPolicyEgressToOperationArgs{
MethodSelectors: accesscontextmanager.ServicePerimeterStatusEgressPolicyEgressToOperationMethodSelectorArray{
&accesscontextmanager.ServicePerimeterStatusEgressPolicyEgressToOperationMethodSelectorArgs{
Method: pulumi.String("string"),
Permission: pulumi.String("string"),
},
},
ServiceName: pulumi.String("string"),
},
},
Resources: pulumi.StringArray{
pulumi.String("string"),
},
},
},
},
IngressPolicies: accesscontextmanager.ServicePerimeterStatusIngressPolicyArray{
&accesscontextmanager.ServicePerimeterStatusIngressPolicyArgs{
IngressFrom: &accesscontextmanager.ServicePerimeterStatusIngressPolicyIngressFromArgs{
Identities: pulumi.StringArray{
pulumi.String("string"),
},
IdentityType: pulumi.String("string"),
Sources: accesscontextmanager.ServicePerimeterStatusIngressPolicyIngressFromSourceArray{
&accesscontextmanager.ServicePerimeterStatusIngressPolicyIngressFromSourceArgs{
AccessLevel: pulumi.String("string"),
Resource: pulumi.String("string"),
},
},
},
IngressTo: &accesscontextmanager.ServicePerimeterStatusIngressPolicyIngressToArgs{
Operations: accesscontextmanager.ServicePerimeterStatusIngressPolicyIngressToOperationArray{
&accesscontextmanager.ServicePerimeterStatusIngressPolicyIngressToOperationArgs{
MethodSelectors: accesscontextmanager.ServicePerimeterStatusIngressPolicyIngressToOperationMethodSelectorArray{
&accesscontextmanager.ServicePerimeterStatusIngressPolicyIngressToOperationMethodSelectorArgs{
Method: pulumi.String("string"),
Permission: pulumi.String("string"),
},
},
ServiceName: pulumi.String("string"),
},
},
Resources: pulumi.StringArray{
pulumi.String("string"),
},
},
},
},
Resources: pulumi.StringArray{
pulumi.String("string"),
},
RestrictedServices: pulumi.StringArray{
pulumi.String("string"),
},
VpcAccessibleServices: &accesscontextmanager.ServicePerimeterStatusVpcAccessibleServicesArgs{
AllowedServices: pulumi.StringArray{
pulumi.String("string"),
},
EnableRestriction: pulumi.Bool(false),
},
},
UseExplicitDryRunSpec: pulumi.Bool(false),
})
var servicePerimeterResource = new ServicePerimeter("servicePerimeterResource", ServicePerimeterArgs.builder()
.parent("string")
.title("string")
.description("string")
.name("string")
.perimeterType("string")
.spec(ServicePerimeterSpecArgs.builder()
.accessLevels("string")
.egressPolicies(ServicePerimeterSpecEgressPolicyArgs.builder()
.egressFrom(ServicePerimeterSpecEgressPolicyEgressFromArgs.builder()
.identities("string")
.identityType("string")
.sourceRestriction("string")
.sources(ServicePerimeterSpecEgressPolicyEgressFromSourceArgs.builder()
.accessLevel("string")
.build())
.build())
.egressTo(ServicePerimeterSpecEgressPolicyEgressToArgs.builder()
.externalResources("string")
.operations(ServicePerimeterSpecEgressPolicyEgressToOperationArgs.builder()
.methodSelectors(ServicePerimeterSpecEgressPolicyEgressToOperationMethodSelectorArgs.builder()
.method("string")
.permission("string")
.build())
.serviceName("string")
.build())
.resources("string")
.build())
.build())
.ingressPolicies(ServicePerimeterSpecIngressPolicyArgs.builder()
.ingressFrom(ServicePerimeterSpecIngressPolicyIngressFromArgs.builder()
.identities("string")
.identityType("string")
.sources(ServicePerimeterSpecIngressPolicyIngressFromSourceArgs.builder()
.accessLevel("string")
.resource("string")
.build())
.build())
.ingressTo(ServicePerimeterSpecIngressPolicyIngressToArgs.builder()
.operations(ServicePerimeterSpecIngressPolicyIngressToOperationArgs.builder()
.methodSelectors(ServicePerimeterSpecIngressPolicyIngressToOperationMethodSelectorArgs.builder()
.method("string")
.permission("string")
.build())
.serviceName("string")
.build())
.resources("string")
.build())
.build())
.resources("string")
.restrictedServices("string")
.vpcAccessibleServices(ServicePerimeterSpecVpcAccessibleServicesArgs.builder()
.allowedServices("string")
.enableRestriction(false)
.build())
.build())
.status(ServicePerimeterStatusArgs.builder()
.accessLevels("string")
.egressPolicies(ServicePerimeterStatusEgressPolicyArgs.builder()
.egressFrom(ServicePerimeterStatusEgressPolicyEgressFromArgs.builder()
.identities("string")
.identityType("string")
.sourceRestriction("string")
.sources(ServicePerimeterStatusEgressPolicyEgressFromSourceArgs.builder()
.accessLevel("string")
.build())
.build())
.egressTo(ServicePerimeterStatusEgressPolicyEgressToArgs.builder()
.externalResources("string")
.operations(ServicePerimeterStatusEgressPolicyEgressToOperationArgs.builder()
.methodSelectors(ServicePerimeterStatusEgressPolicyEgressToOperationMethodSelectorArgs.builder()
.method("string")
.permission("string")
.build())
.serviceName("string")
.build())
.resources("string")
.build())
.build())
.ingressPolicies(ServicePerimeterStatusIngressPolicyArgs.builder()
.ingressFrom(ServicePerimeterStatusIngressPolicyIngressFromArgs.builder()
.identities("string")
.identityType("string")
.sources(ServicePerimeterStatusIngressPolicyIngressFromSourceArgs.builder()
.accessLevel("string")
.resource("string")
.build())
.build())
.ingressTo(ServicePerimeterStatusIngressPolicyIngressToArgs.builder()
.operations(ServicePerimeterStatusIngressPolicyIngressToOperationArgs.builder()
.methodSelectors(ServicePerimeterStatusIngressPolicyIngressToOperationMethodSelectorArgs.builder()
.method("string")
.permission("string")
.build())
.serviceName("string")
.build())
.resources("string")
.build())
.build())
.resources("string")
.restrictedServices("string")
.vpcAccessibleServices(ServicePerimeterStatusVpcAccessibleServicesArgs.builder()
.allowedServices("string")
.enableRestriction(false)
.build())
.build())
.useExplicitDryRunSpec(false)
.build());
service_perimeter_resource = gcp.accesscontextmanager.ServicePerimeter("servicePerimeterResource",
parent="string",
title="string",
description="string",
name="string",
perimeter_type="string",
spec={
"accessLevels": ["string"],
"egressPolicies": [{
"egressFrom": {
"identities": ["string"],
"identityType": "string",
"sourceRestriction": "string",
"sources": [{
"accessLevel": "string",
}],
},
"egressTo": {
"externalResources": ["string"],
"operations": [{
"methodSelectors": [{
"method": "string",
"permission": "string",
}],
"serviceName": "string",
}],
"resources": ["string"],
},
}],
"ingressPolicies": [{
"ingressFrom": {
"identities": ["string"],
"identityType": "string",
"sources": [{
"accessLevel": "string",
"resource": "string",
}],
},
"ingressTo": {
"operations": [{
"methodSelectors": [{
"method": "string",
"permission": "string",
}],
"serviceName": "string",
}],
"resources": ["string"],
},
}],
"resources": ["string"],
"restrictedServices": ["string"],
"vpcAccessibleServices": {
"allowedServices": ["string"],
"enableRestriction": False,
},
},
status={
"accessLevels": ["string"],
"egressPolicies": [{
"egressFrom": {
"identities": ["string"],
"identityType": "string",
"sourceRestriction": "string",
"sources": [{
"accessLevel": "string",
}],
},
"egressTo": {
"externalResources": ["string"],
"operations": [{
"methodSelectors": [{
"method": "string",
"permission": "string",
}],
"serviceName": "string",
}],
"resources": ["string"],
},
}],
"ingressPolicies": [{
"ingressFrom": {
"identities": ["string"],
"identityType": "string",
"sources": [{
"accessLevel": "string",
"resource": "string",
}],
},
"ingressTo": {
"operations": [{
"methodSelectors": [{
"method": "string",
"permission": "string",
}],
"serviceName": "string",
}],
"resources": ["string"],
},
}],
"resources": ["string"],
"restrictedServices": ["string"],
"vpcAccessibleServices": {
"allowedServices": ["string"],
"enableRestriction": False,
},
},
use_explicit_dry_run_spec=False)
const servicePerimeterResource = new gcp.accesscontextmanager.ServicePerimeter("servicePerimeterResource", {
parent: "string",
title: "string",
description: "string",
name: "string",
perimeterType: "string",
spec: {
accessLevels: ["string"],
egressPolicies: [{
egressFrom: {
identities: ["string"],
identityType: "string",
sourceRestriction: "string",
sources: [{
accessLevel: "string",
}],
},
egressTo: {
externalResources: ["string"],
operations: [{
methodSelectors: [{
method: "string",
permission: "string",
}],
serviceName: "string",
}],
resources: ["string"],
},
}],
ingressPolicies: [{
ingressFrom: {
identities: ["string"],
identityType: "string",
sources: [{
accessLevel: "string",
resource: "string",
}],
},
ingressTo: {
operations: [{
methodSelectors: [{
method: "string",
permission: "string",
}],
serviceName: "string",
}],
resources: ["string"],
},
}],
resources: ["string"],
restrictedServices: ["string"],
vpcAccessibleServices: {
allowedServices: ["string"],
enableRestriction: false,
},
},
status: {
accessLevels: ["string"],
egressPolicies: [{
egressFrom: {
identities: ["string"],
identityType: "string",
sourceRestriction: "string",
sources: [{
accessLevel: "string",
}],
},
egressTo: {
externalResources: ["string"],
operations: [{
methodSelectors: [{
method: "string",
permission: "string",
}],
serviceName: "string",
}],
resources: ["string"],
},
}],
ingressPolicies: [{
ingressFrom: {
identities: ["string"],
identityType: "string",
sources: [{
accessLevel: "string",
resource: "string",
}],
},
ingressTo: {
operations: [{
methodSelectors: [{
method: "string",
permission: "string",
}],
serviceName: "string",
}],
resources: ["string"],
},
}],
resources: ["string"],
restrictedServices: ["string"],
vpcAccessibleServices: {
allowedServices: ["string"],
enableRestriction: false,
},
},
useExplicitDryRunSpec: false,
});
type: gcp:accesscontextmanager:ServicePerimeter
properties:
description: string
name: string
parent: string
perimeterType: string
spec:
accessLevels:
- string
egressPolicies:
- egressFrom:
identities:
- string
identityType: string
sourceRestriction: string
sources:
- accessLevel: string
egressTo:
externalResources:
- string
operations:
- methodSelectors:
- method: string
permission: string
serviceName: string
resources:
- string
ingressPolicies:
- ingressFrom:
identities:
- string
identityType: string
sources:
- accessLevel: string
resource: string
ingressTo:
operations:
- methodSelectors:
- method: string
permission: string
serviceName: string
resources:
- string
resources:
- string
restrictedServices:
- string
vpcAccessibleServices:
allowedServices:
- string
enableRestriction: false
status:
accessLevels:
- string
egressPolicies:
- egressFrom:
identities:
- string
identityType: string
sourceRestriction: string
sources:
- accessLevel: string
egressTo:
externalResources:
- string
operations:
- methodSelectors:
- method: string
permission: string
serviceName: string
resources:
- string
ingressPolicies:
- ingressFrom:
identities:
- string
identityType: string
sources:
- accessLevel: string
resource: string
ingressTo:
operations:
- methodSelectors:
- method: string
permission: string
serviceName: string
resources:
- string
resources:
- string
restrictedServices:
- string
vpcAccessibleServices:
allowedServices:
- string
enableRestriction: false
title: string
useExplicitDryRunSpec: false
ServicePerimeter 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 ServicePerimeter resource accepts the following input properties:
- Parent string
- The AccessPolicy this ServicePerimeter lives in. Format: accessPolicies/{policy_id}
- Title string
- Human readable title. Must be unique within the Policy.
- Description string
- Description of the ServicePerimeter and its use. Does not affect behavior.
- 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}
- 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 are:PERIMETER_TYPE_REGULAR
,PERIMETER_TYPE_BRIDGE
. - Spec
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
Perimeter Status - ServicePerimeter configuration. Specifies sets of resources, restricted services and access levels that determine perimeter content and boundaries. Structure is documented below.
- 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.
- Parent string
- The AccessPolicy this ServicePerimeter lives in. Format: accessPolicies/{policy_id}
- Title string
- Human readable title. Must be unique within the Policy.
- Description string
- Description of the ServicePerimeter and its use. Does not affect behavior.
- 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}
- 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 are:PERIMETER_TYPE_REGULAR
,PERIMETER_TYPE_BRIDGE
. - Spec
Service
Perimeter Spec Args - 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
Perimeter Status Args - ServicePerimeter configuration. Specifies sets of resources, restricted services and access levels that determine perimeter content and boundaries. Structure is documented below.
- 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.
- parent String
- The AccessPolicy this ServicePerimeter lives in. Format: accessPolicies/{policy_id}
- title String
- Human readable title. Must be unique within the Policy.
- description String
- Description of the ServicePerimeter and its use. Does not affect behavior.
- 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}
- 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 are:PERIMETER_TYPE_REGULAR
,PERIMETER_TYPE_BRIDGE
. - spec
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
Perimeter Status - ServicePerimeter configuration. Specifies sets of resources, restricted services and access levels that determine perimeter content and boundaries. Structure is documented below.
- 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.
- parent string
- The AccessPolicy this ServicePerimeter lives in. Format: accessPolicies/{policy_id}
- title string
- Human readable title. Must be unique within the Policy.
- description string
- Description of the ServicePerimeter and its use. Does not affect behavior.
- 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}
- 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 are:PERIMETER_TYPE_REGULAR
,PERIMETER_TYPE_BRIDGE
. - spec
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
Perimeter Status - ServicePerimeter configuration. Specifies sets of resources, restricted services and access levels that determine perimeter content and boundaries. Structure is documented below.
- 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.
- parent str
- The AccessPolicy this ServicePerimeter lives in. Format: accessPolicies/{policy_id}
- title str
- Human readable title. Must be unique within the Policy.
- description str
- Description of the ServicePerimeter and its use. Does not affect behavior.
- 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}
- 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 are:PERIMETER_TYPE_REGULAR
,PERIMETER_TYPE_BRIDGE
. - spec
Service
Perimeter Spec Args - 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
Perimeter Status Args - ServicePerimeter configuration. Specifies sets of resources, restricted services and access levels that determine perimeter content and boundaries. Structure is documented below.
- 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.
- parent String
- The AccessPolicy this ServicePerimeter lives in. Format: accessPolicies/{policy_id}
- title String
- Human readable title. Must be unique within the Policy.
- description String
- Description of the ServicePerimeter and its use. Does not affect behavior.
- 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}
- 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 are:PERIMETER_TYPE_REGULAR
,PERIMETER_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.
- 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.
Outputs
All input properties are implicitly available as output properties. Additionally, the ServicePerimeter resource produces the following output properties:
- Create
Time string - Time the AccessPolicy was created in UTC.
- Id string
- The provider-assigned unique ID for this managed resource.
- Update
Time string - Time the AccessPolicy was updated in UTC.
- Create
Time string - Time the AccessPolicy was created in UTC.
- Id string
- The provider-assigned unique ID for this managed resource.
- Update
Time string - Time the AccessPolicy was updated in UTC.
- create
Time String - Time the AccessPolicy was created in UTC.
- id String
- The provider-assigned unique ID for this managed resource.
- update
Time String - Time the AccessPolicy was updated in UTC.
- create
Time string - Time the AccessPolicy was created in UTC.
- id string
- The provider-assigned unique ID for this managed resource.
- update
Time string - Time the AccessPolicy was updated in UTC.
- create_
time str - Time the AccessPolicy was created in UTC.
- id str
- The provider-assigned unique ID for this managed resource.
- update_
time str - Time the AccessPolicy was updated in UTC.
- create
Time String - Time the AccessPolicy was created in UTC.
- id String
- The provider-assigned unique ID for this managed resource.
- update
Time String - Time the AccessPolicy was updated in UTC.
Look up Existing ServicePerimeter Resource
Get an existing ServicePerimeter 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?: ServicePerimeterState, opts?: CustomResourceOptions): ServicePerimeter
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
create_time: Optional[str] = None,
description: Optional[str] = None,
name: Optional[str] = None,
parent: Optional[str] = None,
perimeter_type: Optional[str] = None,
spec: Optional[ServicePerimeterSpecArgs] = None,
status: Optional[ServicePerimeterStatusArgs] = None,
title: Optional[str] = None,
update_time: Optional[str] = None,
use_explicit_dry_run_spec: Optional[bool] = None) -> ServicePerimeter
func GetServicePerimeter(ctx *Context, name string, id IDInput, state *ServicePerimeterState, opts ...ResourceOption) (*ServicePerimeter, error)
public static ServicePerimeter Get(string name, Input<string> id, ServicePerimeterState? state, CustomResourceOptions? opts = null)
public static ServicePerimeter get(String name, Output<String> id, ServicePerimeterState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Create
Time string - Time the AccessPolicy was created in UTC.
- Description string
- Description of the ServicePerimeter and its use. Does not affect behavior.
- 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}
- Parent string
- The AccessPolicy this ServicePerimeter lives in. Format: accessPolicies/{policy_id}
- 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 are:PERIMETER_TYPE_REGULAR
,PERIMETER_TYPE_BRIDGE
. - Spec
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
Perimeter Status - ServicePerimeter configuration. Specifies sets of resources, restricted services and access levels that determine perimeter content and boundaries. Structure is documented below.
- Title string
- Human readable title. Must be unique within the Policy.
- 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.
- Create
Time string - Time the AccessPolicy was created in UTC.
- Description string
- Description of the ServicePerimeter and its use. Does not affect behavior.
- 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}
- Parent string
- The AccessPolicy this ServicePerimeter lives in. Format: accessPolicies/{policy_id}
- 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 are:PERIMETER_TYPE_REGULAR
,PERIMETER_TYPE_BRIDGE
. - Spec
Service
Perimeter Spec Args - 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
Perimeter Status Args - ServicePerimeter configuration. Specifies sets of resources, restricted services and access levels that determine perimeter content and boundaries. Structure is documented below.
- Title string
- Human readable title. Must be unique within the Policy.
- 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.
- create
Time String - Time the AccessPolicy was created in UTC.
- description String
- Description of the ServicePerimeter and its use. Does not affect behavior.
- 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}
- parent String
- The AccessPolicy this ServicePerimeter lives in. Format: accessPolicies/{policy_id}
- 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 are:PERIMETER_TYPE_REGULAR
,PERIMETER_TYPE_BRIDGE
. - spec
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
Perimeter Status - ServicePerimeter configuration. Specifies sets of resources, restricted services and access levels that determine perimeter content and boundaries. Structure is documented below.
- title String
- Human readable title. Must be unique within the Policy.
- 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.
- create
Time string - Time the AccessPolicy was created in UTC.
- description string
- Description of the ServicePerimeter and its use. Does not affect behavior.
- 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}
- parent string
- The AccessPolicy this ServicePerimeter lives in. Format: accessPolicies/{policy_id}
- 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 are:PERIMETER_TYPE_REGULAR
,PERIMETER_TYPE_BRIDGE
. - spec
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
Perimeter Status - ServicePerimeter configuration. Specifies sets of resources, restricted services and access levels that determine perimeter content and boundaries. Structure is documented below.
- title string
- Human readable title. Must be unique within the Policy.
- 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.
- create_
time str - Time the AccessPolicy was created in UTC.
- description str
- Description of the ServicePerimeter and its use. Does not affect behavior.
- 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}
- parent str
- The AccessPolicy this ServicePerimeter lives in. Format: accessPolicies/{policy_id}
- 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 are:PERIMETER_TYPE_REGULAR
,PERIMETER_TYPE_BRIDGE
. - spec
Service
Perimeter Spec Args - 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
Perimeter Status Args - ServicePerimeter configuration. Specifies sets of resources, restricted services and access levels that determine perimeter content and boundaries. Structure is documented below.
- title str
- Human readable title. Must be unique within the Policy.
- 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.
- create
Time String - Time the AccessPolicy was created in UTC.
- description String
- Description of the ServicePerimeter and its use. Does not affect behavior.
- 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}
- parent String
- The AccessPolicy this ServicePerimeter lives in. Format: accessPolicies/{policy_id}
- 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 are:PERIMETER_TYPE_REGULAR
,PERIMETER_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.
- title String
- Human readable title. Must be unique within the Policy.
- 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.
Supporting Types
ServicePerimeterSpec, ServicePerimeterSpecArgs
- 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<ServicePerimeter 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<ServicePerimeter 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 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 []ServicePerimeter 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 []ServicePerimeter 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 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<ServicePerimeter 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<ServicePerimeter 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 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 ServicePerimeter 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 ServicePerimeter 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 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[ServicePerimeter 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[ServicePerimeter 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 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.
ServicePerimeterSpecEgressPolicy, ServicePerimeterSpecEgressPolicyArgs
- Egress
From ServicePerimeter Spec Egress Policy Egress From - Defines conditions on the source of a request causing this
EgressPolicy
to apply. Structure is documented below. - Egress
To ServicePerimeter 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 ServicePerimeter Spec Egress Policy Egress From - Defines conditions on the source of a request causing this
EgressPolicy
to apply. Structure is documented below. - Egress
To ServicePerimeter 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 ServicePerimeter Spec Egress Policy Egress From - Defines conditions on the source of a request causing this
EgressPolicy
to apply. Structure is documented below. - egress
To ServicePerimeter 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 ServicePerimeter Spec Egress Policy Egress From - Defines conditions on the source of a request causing this
EgressPolicy
to apply. Structure is documented below. - egress
To ServicePerimeter 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 ServicePerimeter Spec Egress Policy Egress From - Defines conditions on the source of a request causing this
EgressPolicy
to apply. Structure is documented below. - egress_
to ServicePerimeter 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.
ServicePerimeterSpecEgressPolicyEgressFrom, ServicePerimeterSpecEgressPolicyEgressFromArgs
- 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 are:IDENTITY_TYPE_UNSPECIFIED
,ANY_IDENTITY
,ANY_USER_ACCOUNT
,ANY_SERVICE_ACCOUNT
. - Source
Restriction string - Whether to enforce traffic restrictions based on
sources
field. If thesources
field is non-empty, then this field must be set toSOURCE_RESTRICTION_ENABLED
. Possible values are:SOURCE_RESTRICTION_UNSPECIFIED
,SOURCE_RESTRICTION_ENABLED
,SOURCE_RESTRICTION_DISABLED
. - Sources
List<Service
Perimeter Spec Egress Policy Egress From Source> - Sources that this EgressPolicy authorizes access from. Structure is documented below.
- 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 are:IDENTITY_TYPE_UNSPECIFIED
,ANY_IDENTITY
,ANY_USER_ACCOUNT
,ANY_SERVICE_ACCOUNT
. - Source
Restriction string - Whether to enforce traffic restrictions based on
sources
field. If thesources
field is non-empty, then this field must be set toSOURCE_RESTRICTION_ENABLED
. Possible values are:SOURCE_RESTRICTION_UNSPECIFIED
,SOURCE_RESTRICTION_ENABLED
,SOURCE_RESTRICTION_DISABLED
. - Sources
[]Service
Perimeter Spec Egress Policy Egress From Source - Sources that this EgressPolicy authorizes access from. Structure is documented below.
- 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 are:IDENTITY_TYPE_UNSPECIFIED
,ANY_IDENTITY
,ANY_USER_ACCOUNT
,ANY_SERVICE_ACCOUNT
. - source
Restriction String - Whether to enforce traffic restrictions based on
sources
field. If thesources
field is non-empty, then this field must be set toSOURCE_RESTRICTION_ENABLED
. Possible values are:SOURCE_RESTRICTION_UNSPECIFIED
,SOURCE_RESTRICTION_ENABLED
,SOURCE_RESTRICTION_DISABLED
. - sources
List<Service
Perimeter Spec Egress Policy Egress From Source> - Sources that this EgressPolicy authorizes access from. Structure is documented below.
- 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 are:IDENTITY_TYPE_UNSPECIFIED
,ANY_IDENTITY
,ANY_USER_ACCOUNT
,ANY_SERVICE_ACCOUNT
. - source
Restriction string - Whether to enforce traffic restrictions based on
sources
field. If thesources
field is non-empty, then this field must be set toSOURCE_RESTRICTION_ENABLED
. Possible values are:SOURCE_RESTRICTION_UNSPECIFIED
,SOURCE_RESTRICTION_ENABLED
,SOURCE_RESTRICTION_DISABLED
. - sources
Service
Perimeter Spec Egress Policy Egress From Source[] - Sources that this EgressPolicy authorizes access from. Structure is documented below.
- 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 are:IDENTITY_TYPE_UNSPECIFIED
,ANY_IDENTITY
,ANY_USER_ACCOUNT
,ANY_SERVICE_ACCOUNT
. - source_
restriction str - Whether to enforce traffic restrictions based on
sources
field. If thesources
field is non-empty, then this field must be set toSOURCE_RESTRICTION_ENABLED
. Possible values are:SOURCE_RESTRICTION_UNSPECIFIED
,SOURCE_RESTRICTION_ENABLED
,SOURCE_RESTRICTION_DISABLED
. - sources
Sequence[Service
Perimeter Spec Egress Policy Egress From Source] - Sources that this EgressPolicy authorizes access from. Structure is documented below.
- 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 are:IDENTITY_TYPE_UNSPECIFIED
,ANY_IDENTITY
,ANY_USER_ACCOUNT
,ANY_SERVICE_ACCOUNT
. - source
Restriction String - Whether to enforce traffic restrictions based on
sources
field. If thesources
field is non-empty, then this field must be set toSOURCE_RESTRICTION_ENABLED
. Possible values are:SOURCE_RESTRICTION_UNSPECIFIED
,SOURCE_RESTRICTION_ENABLED
,SOURCE_RESTRICTION_DISABLED
. - sources List<Property Map>
- Sources that this EgressPolicy authorizes access from. Structure is documented below.
ServicePerimeterSpecEgressPolicyEgressFromSource, ServicePerimeterSpecEgressPolicyEgressFromSourceArgs
- Access
Level string - An AccessLevel resource name that allows resources outside the ServicePerimeter to be accessed from the inside.
- Access
Level string - An AccessLevel resource name that allows resources outside the ServicePerimeter to be accessed from the inside.
- access
Level String - An AccessLevel resource name that allows resources outside the ServicePerimeter to be accessed from the inside.
- access
Level string - An AccessLevel resource name that allows resources outside the ServicePerimeter to be accessed from the inside.
- access_
level str - An AccessLevel resource name that allows resources outside the ServicePerimeter to be accessed from the inside.
- access
Level String - An AccessLevel resource name that allows resources outside the ServicePerimeter to be accessed from the inside.
ServicePerimeterSpecEgressPolicyEgressTo, ServicePerimeterSpecEgressPolicyEgressToArgs
- 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
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
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
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
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
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.
ServicePerimeterSpecEgressPolicyEgressToOperation, ServicePerimeterSpecEgressPolicyEgressToOperationArgs
- Method
Selectors List<ServicePerimeter 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 []ServicePerimeter 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<ServicePerimeter 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 ServicePerimeter 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[ServicePerimeter 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.
ServicePerimeterSpecEgressPolicyEgressToOperationMethodSelector, ServicePerimeterSpecEgressPolicyEgressToOperationMethodSelectorArgs
- 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
.
ServicePerimeterSpecIngressPolicy, ServicePerimeterSpecIngressPolicyArgs
- Ingress
From ServicePerimeter 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 ServicePerimeter 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 ServicePerimeter 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 ServicePerimeter 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 ServicePerimeter 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 ServicePerimeter 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 ServicePerimeter 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 ServicePerimeter 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 ServicePerimeter 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 ServicePerimeter 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.
ServicePerimeterSpecIngressPolicyIngressFrom, ServicePerimeterSpecIngressPolicyIngressFromArgs
- 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 are:IDENTITY_TYPE_UNSPECIFIED
,ANY_IDENTITY
,ANY_USER_ACCOUNT
,ANY_SERVICE_ACCOUNT
. - Sources
List<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 are:IDENTITY_TYPE_UNSPECIFIED
,ANY_IDENTITY
,ANY_USER_ACCOUNT
,ANY_SERVICE_ACCOUNT
. - Sources
[]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 are:IDENTITY_TYPE_UNSPECIFIED
,ANY_IDENTITY
,ANY_USER_ACCOUNT
,ANY_SERVICE_ACCOUNT
. - sources
List<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 are:IDENTITY_TYPE_UNSPECIFIED
,ANY_IDENTITY
,ANY_USER_ACCOUNT
,ANY_SERVICE_ACCOUNT
. - sources
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 are:IDENTITY_TYPE_UNSPECIFIED
,ANY_IDENTITY
,ANY_USER_ACCOUNT
,ANY_SERVICE_ACCOUNT
. - sources
Sequence[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 are:IDENTITY_TYPE_UNSPECIFIED
,ANY_IDENTITY
,ANY_USER_ACCOUNT
,ANY_SERVICE_ACCOUNT
. - sources List<Property Map>
- Sources that this
IngressPolicy
authorizes access from. Structure is documented below.
ServicePerimeterSpecIngressPolicyIngressFromSource, ServicePerimeterSpecIngressPolicyIngressFromSourceArgs
- Access
Level string - An AccessLevel resource name that allows resources outside the ServicePerimeter to be accessed from the inside.
- 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 allows resources outside the ServicePerimeter to be accessed from the inside.
- 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 allows resources outside the ServicePerimeter to be accessed from the inside.
- 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 allows resources outside the ServicePerimeter to be accessed from the inside.
- 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 allows resources outside the ServicePerimeter to be accessed from the inside.
- 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 allows resources outside the ServicePerimeter to be accessed from the inside.
- 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.
ServicePerimeterSpecIngressPolicyIngressTo, ServicePerimeterSpecIngressPolicyIngressToArgs
- Operations
List<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
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
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
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
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.
ServicePerimeterSpecIngressPolicyIngressToOperation, ServicePerimeterSpecIngressPolicyIngressToOperationArgs
- Method
Selectors List<ServicePerimeter 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 []ServicePerimeter 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<ServicePerimeter 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 ServicePerimeter 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[ServicePerimeter 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.
ServicePerimeterSpecIngressPolicyIngressToOperationMethodSelector, ServicePerimeterSpecIngressPolicyIngressToOperationMethodSelectorArgs
- 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
.
ServicePerimeterSpecVpcAccessibleServices, ServicePerimeterSpecVpcAccessibleServicesArgs
- 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'.
ServicePerimeterStatus, ServicePerimeterStatusArgs
- 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<ServicePerimeter 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<ServicePerimeter 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 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 []ServicePerimeter 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 []ServicePerimeter 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 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<ServicePerimeter 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<ServicePerimeter 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 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 ServicePerimeter 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 ServicePerimeter 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 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[ServicePerimeter 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[ServicePerimeter 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 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.
ServicePerimeterStatusEgressPolicy, ServicePerimeterStatusEgressPolicyArgs
- Egress
From ServicePerimeter Status Egress Policy Egress From - Defines conditions on the source of a request causing this
EgressPolicy
to apply. Structure is documented below. - Egress
To ServicePerimeter 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 ServicePerimeter Status Egress Policy Egress From - Defines conditions on the source of a request causing this
EgressPolicy
to apply. Structure is documented below. - Egress
To ServicePerimeter 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 ServicePerimeter Status Egress Policy Egress From - Defines conditions on the source of a request causing this
EgressPolicy
to apply. Structure is documented below. - egress
To ServicePerimeter 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 ServicePerimeter Status Egress Policy Egress From - Defines conditions on the source of a request causing this
EgressPolicy
to apply. Structure is documented below. - egress
To ServicePerimeter 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 ServicePerimeter Status Egress Policy Egress From - Defines conditions on the source of a request causing this
EgressPolicy
to apply. Structure is documented below. - egress_
to ServicePerimeter 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.
ServicePerimeterStatusEgressPolicyEgressFrom, ServicePerimeterStatusEgressPolicyEgressFromArgs
- 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 are:IDENTITY_TYPE_UNSPECIFIED
,ANY_IDENTITY
,ANY_USER_ACCOUNT
,ANY_SERVICE_ACCOUNT
. - Source
Restriction string - Whether to enforce traffic restrictions based on
sources
field. If thesources
field is non-empty, then this field must be set toSOURCE_RESTRICTION_ENABLED
. Possible values are:SOURCE_RESTRICTION_UNSPECIFIED
,SOURCE_RESTRICTION_ENABLED
,SOURCE_RESTRICTION_DISABLED
. - Sources
List<Service
Perimeter Status Egress Policy Egress From Source> - Sources that this EgressPolicy authorizes access from. Structure is documented below.
- 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 are:IDENTITY_TYPE_UNSPECIFIED
,ANY_IDENTITY
,ANY_USER_ACCOUNT
,ANY_SERVICE_ACCOUNT
. - Source
Restriction string - Whether to enforce traffic restrictions based on
sources
field. If thesources
field is non-empty, then this field must be set toSOURCE_RESTRICTION_ENABLED
. Possible values are:SOURCE_RESTRICTION_UNSPECIFIED
,SOURCE_RESTRICTION_ENABLED
,SOURCE_RESTRICTION_DISABLED
. - Sources
[]Service
Perimeter Status Egress Policy Egress From Source - Sources that this EgressPolicy authorizes access from. Structure is documented below.
- 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 are:IDENTITY_TYPE_UNSPECIFIED
,ANY_IDENTITY
,ANY_USER_ACCOUNT
,ANY_SERVICE_ACCOUNT
. - source
Restriction String - Whether to enforce traffic restrictions based on
sources
field. If thesources
field is non-empty, then this field must be set toSOURCE_RESTRICTION_ENABLED
. Possible values are:SOURCE_RESTRICTION_UNSPECIFIED
,SOURCE_RESTRICTION_ENABLED
,SOURCE_RESTRICTION_DISABLED
. - sources
List<Service
Perimeter Status Egress Policy Egress From Source> - Sources that this EgressPolicy authorizes access from. Structure is documented below.
- 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 are:IDENTITY_TYPE_UNSPECIFIED
,ANY_IDENTITY
,ANY_USER_ACCOUNT
,ANY_SERVICE_ACCOUNT
. - source
Restriction string - Whether to enforce traffic restrictions based on
sources
field. If thesources
field is non-empty, then this field must be set toSOURCE_RESTRICTION_ENABLED
. Possible values are:SOURCE_RESTRICTION_UNSPECIFIED
,SOURCE_RESTRICTION_ENABLED
,SOURCE_RESTRICTION_DISABLED
. - sources
Service
Perimeter Status Egress Policy Egress From Source[] - Sources that this EgressPolicy authorizes access from. Structure is documented below.
- 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 are:IDENTITY_TYPE_UNSPECIFIED
,ANY_IDENTITY
,ANY_USER_ACCOUNT
,ANY_SERVICE_ACCOUNT
. - source_
restriction str - Whether to enforce traffic restrictions based on
sources
field. If thesources
field is non-empty, then this field must be set toSOURCE_RESTRICTION_ENABLED
. Possible values are:SOURCE_RESTRICTION_UNSPECIFIED
,SOURCE_RESTRICTION_ENABLED
,SOURCE_RESTRICTION_DISABLED
. - sources
Sequence[Service
Perimeter Status Egress Policy Egress From Source] - Sources that this EgressPolicy authorizes access from. Structure is documented below.
- 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 are:IDENTITY_TYPE_UNSPECIFIED
,ANY_IDENTITY
,ANY_USER_ACCOUNT
,ANY_SERVICE_ACCOUNT
. - source
Restriction String - Whether to enforce traffic restrictions based on
sources
field. If thesources
field is non-empty, then this field must be set toSOURCE_RESTRICTION_ENABLED
. Possible values are:SOURCE_RESTRICTION_UNSPECIFIED
,SOURCE_RESTRICTION_ENABLED
,SOURCE_RESTRICTION_DISABLED
. - sources List<Property Map>
- Sources that this EgressPolicy authorizes access from. Structure is documented below.
ServicePerimeterStatusEgressPolicyEgressFromSource, ServicePerimeterStatusEgressPolicyEgressFromSourceArgs
- Access
Level string - An AccessLevel resource name that allows resources outside the ServicePerimeter to be accessed from the inside.
- Access
Level string - An AccessLevel resource name that allows resources outside the ServicePerimeter to be accessed from the inside.
- access
Level String - An AccessLevel resource name that allows resources outside the ServicePerimeter to be accessed from the inside.
- access
Level string - An AccessLevel resource name that allows resources outside the ServicePerimeter to be accessed from the inside.
- access_
level str - An AccessLevel resource name that allows resources outside the ServicePerimeter to be accessed from the inside.
- access
Level String - An AccessLevel resource name that allows resources outside the ServicePerimeter to be accessed from the inside.
ServicePerimeterStatusEgressPolicyEgressTo, ServicePerimeterStatusEgressPolicyEgressToArgs
- 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
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
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
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
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
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.
ServicePerimeterStatusEgressPolicyEgressToOperation, ServicePerimeterStatusEgressPolicyEgressToOperationArgs
- Method
Selectors List<ServicePerimeter 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 []ServicePerimeter 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<ServicePerimeter 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 ServicePerimeter 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[ServicePerimeter 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.
ServicePerimeterStatusEgressPolicyEgressToOperationMethodSelector, ServicePerimeterStatusEgressPolicyEgressToOperationMethodSelectorArgs
- 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
.
ServicePerimeterStatusIngressPolicy, ServicePerimeterStatusIngressPolicyArgs
- Ingress
From ServicePerimeter 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 ServicePerimeter 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 ServicePerimeter 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 ServicePerimeter 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 ServicePerimeter 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 ServicePerimeter 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 ServicePerimeter 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 ServicePerimeter 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 ServicePerimeter 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 ServicePerimeter 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.
ServicePerimeterStatusIngressPolicyIngressFrom, ServicePerimeterStatusIngressPolicyIngressFromArgs
- 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 are:IDENTITY_TYPE_UNSPECIFIED
,ANY_IDENTITY
,ANY_USER_ACCOUNT
,ANY_SERVICE_ACCOUNT
. - Sources
List<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 are:IDENTITY_TYPE_UNSPECIFIED
,ANY_IDENTITY
,ANY_USER_ACCOUNT
,ANY_SERVICE_ACCOUNT
. - Sources
[]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 are:IDENTITY_TYPE_UNSPECIFIED
,ANY_IDENTITY
,ANY_USER_ACCOUNT
,ANY_SERVICE_ACCOUNT
. - sources
List<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 are:IDENTITY_TYPE_UNSPECIFIED
,ANY_IDENTITY
,ANY_USER_ACCOUNT
,ANY_SERVICE_ACCOUNT
. - sources
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 are:IDENTITY_TYPE_UNSPECIFIED
,ANY_IDENTITY
,ANY_USER_ACCOUNT
,ANY_SERVICE_ACCOUNT
. - sources
Sequence[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 are:IDENTITY_TYPE_UNSPECIFIED
,ANY_IDENTITY
,ANY_USER_ACCOUNT
,ANY_SERVICE_ACCOUNT
. - sources List<Property Map>
- Sources that this
IngressPolicy
authorizes access from. Structure is documented below.
ServicePerimeterStatusIngressPolicyIngressFromSource, ServicePerimeterStatusIngressPolicyIngressFromSourceArgs
- Access
Level string - An AccessLevel resource name that allows resources outside the ServicePerimeter to be accessed from the inside.
- 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 allows resources outside the ServicePerimeter to be accessed from the inside.
- 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 allows resources outside the ServicePerimeter to be accessed from the inside.
- 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 allows resources outside the ServicePerimeter to be accessed from the inside.
- 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 allows resources outside the ServicePerimeter to be accessed from the inside.
- 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 allows resources outside the ServicePerimeter to be accessed from the inside.
- 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.
ServicePerimeterStatusIngressPolicyIngressTo, ServicePerimeterStatusIngressPolicyIngressToArgs
- Operations
List<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
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
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
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
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.
ServicePerimeterStatusIngressPolicyIngressToOperation, ServicePerimeterStatusIngressPolicyIngressToOperationArgs
- Method
Selectors List<ServicePerimeter 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 []ServicePerimeter 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<ServicePerimeter 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 ServicePerimeter 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[ServicePerimeter 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.
ServicePerimeterStatusIngressPolicyIngressToOperationMethodSelector, ServicePerimeterStatusIngressPolicyIngressToOperationMethodSelectorArgs
- 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
.
ServicePerimeterStatusVpcAccessibleServices, ServicePerimeterStatusVpcAccessibleServicesArgs
- 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
ServicePerimeter can be imported using any of these accepted formats:
{{name}}
When using the pulumi import
command, ServicePerimeter can be imported using one of the formats above. For example:
$ pulumi import gcp:accesscontextmanager/servicePerimeter:ServicePerimeter default {{name}}
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- Google Cloud (GCP) Classic pulumi/pulumi-gcp
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
google-beta
Terraform Provider.