gcp.projects.AccessApprovalSettings
Explore with Pulumi AI
Access Approval enables you to require your explicit approval whenever Google support and engineering need to access your customer content.
To get more information about ProjectSettings, see:
Example Usage
Project Access Approval Full
import * as pulumi from "@pulumi/pulumi";
import * as gcp from "@pulumi/gcp";
const projectAccessApproval = new gcp.projects.AccessApprovalSettings("project_access_approval", {
    projectId: "my-project-name",
    notificationEmails: [
        "testuser@example.com",
        "example.user@example.com",
    ],
    enrolledServices: [{
        cloudProduct: "all",
        enrollmentLevel: "BLOCK_ALL",
    }],
});
import pulumi
import pulumi_gcp as gcp
project_access_approval = gcp.projects.AccessApprovalSettings("project_access_approval",
    project_id="my-project-name",
    notification_emails=[
        "testuser@example.com",
        "example.user@example.com",
    ],
    enrolled_services=[{
        "cloud_product": "all",
        "enrollment_level": "BLOCK_ALL",
    }])
package main
import (
	"github.com/pulumi/pulumi-gcp/sdk/v8/go/gcp/projects"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := projects.NewAccessApprovalSettings(ctx, "project_access_approval", &projects.AccessApprovalSettingsArgs{
			ProjectId: pulumi.String("my-project-name"),
			NotificationEmails: pulumi.StringArray{
				pulumi.String("testuser@example.com"),
				pulumi.String("example.user@example.com"),
			},
			EnrolledServices: projects.AccessApprovalSettingsEnrolledServiceArray{
				&projects.AccessApprovalSettingsEnrolledServiceArgs{
					CloudProduct:    pulumi.String("all"),
					EnrollmentLevel: pulumi.String("BLOCK_ALL"),
				},
			},
		})
		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 projectAccessApproval = new Gcp.Projects.AccessApprovalSettings("project_access_approval", new()
    {
        ProjectId = "my-project-name",
        NotificationEmails = new[]
        {
            "testuser@example.com",
            "example.user@example.com",
        },
        EnrolledServices = new[]
        {
            new Gcp.Projects.Inputs.AccessApprovalSettingsEnrolledServiceArgs
            {
                CloudProduct = "all",
                EnrollmentLevel = "BLOCK_ALL",
            },
        },
    });
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.gcp.projects.AccessApprovalSettings;
import com.pulumi.gcp.projects.AccessApprovalSettingsArgs;
import com.pulumi.gcp.projects.inputs.AccessApprovalSettingsEnrolledServiceArgs;
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 projectAccessApproval = new AccessApprovalSettings("projectAccessApproval", AccessApprovalSettingsArgs.builder()
            .projectId("my-project-name")
            .notificationEmails(            
                "testuser@example.com",
                "example.user@example.com")
            .enrolledServices(AccessApprovalSettingsEnrolledServiceArgs.builder()
                .cloudProduct("all")
                .enrollmentLevel("BLOCK_ALL")
                .build())
            .build());
    }
}
resources:
  projectAccessApproval:
    type: gcp:projects:AccessApprovalSettings
    name: project_access_approval
    properties:
      projectId: my-project-name
      notificationEmails:
        - testuser@example.com
        - example.user@example.com
      enrolledServices:
        - cloudProduct: all
          enrollmentLevel: BLOCK_ALL
Project Access Approval Active Key Version
import * as pulumi from "@pulumi/pulumi";
import * as gcp from "@pulumi/gcp";
const keyRing = new gcp.kms.KeyRing("key_ring", {
    name: "key-ring",
    location: "global",
    project: "my-project-name",
});
const cryptoKey = new gcp.kms.CryptoKey("crypto_key", {
    name: "crypto-key",
    keyRing: keyRing.id,
    purpose: "ASYMMETRIC_SIGN",
    versionTemplate: {
        algorithm: "EC_SIGN_P384_SHA384",
    },
});
const serviceAccount = gcp.accessapproval.getProjectServiceAccount({
    projectId: "my-project-name",
});
const iam = new gcp.kms.CryptoKeyIAMMember("iam", {
    cryptoKeyId: cryptoKey.id,
    role: "roles/cloudkms.signerVerifier",
    member: serviceAccount.then(serviceAccount => `serviceAccount:${serviceAccount.accountEmail}`),
});
const cryptoKeyVersion = gcp.kms.getKMSCryptoKeyVersionOutput({
    cryptoKey: cryptoKey.id,
});
const projectAccessApproval = new gcp.projects.AccessApprovalSettings("project_access_approval", {
    projectId: "my-project-name",
    activeKeyVersion: cryptoKeyVersion.apply(cryptoKeyVersion => cryptoKeyVersion.name),
    enrolledServices: [{
        cloudProduct: "all",
    }],
}, {
    dependsOn: [iam],
});
import pulumi
import pulumi_gcp as gcp
key_ring = gcp.kms.KeyRing("key_ring",
    name="key-ring",
    location="global",
    project="my-project-name")
crypto_key = gcp.kms.CryptoKey("crypto_key",
    name="crypto-key",
    key_ring=key_ring.id,
    purpose="ASYMMETRIC_SIGN",
    version_template={
        "algorithm": "EC_SIGN_P384_SHA384",
    })
service_account = gcp.accessapproval.get_project_service_account(project_id="my-project-name")
iam = gcp.kms.CryptoKeyIAMMember("iam",
    crypto_key_id=crypto_key.id,
    role="roles/cloudkms.signerVerifier",
    member=f"serviceAccount:{service_account.account_email}")
crypto_key_version = gcp.kms.get_kms_crypto_key_version_output(crypto_key=crypto_key.id)
project_access_approval = gcp.projects.AccessApprovalSettings("project_access_approval",
    project_id="my-project-name",
    active_key_version=crypto_key_version.name,
    enrolled_services=[{
        "cloud_product": "all",
    }],
    opts = pulumi.ResourceOptions(depends_on=[iam]))
package main
import (
	"fmt"
	"github.com/pulumi/pulumi-gcp/sdk/v8/go/gcp/accessapproval"
	"github.com/pulumi/pulumi-gcp/sdk/v8/go/gcp/kms"
	"github.com/pulumi/pulumi-gcp/sdk/v8/go/gcp/projects"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		keyRing, err := kms.NewKeyRing(ctx, "key_ring", &kms.KeyRingArgs{
			Name:     pulumi.String("key-ring"),
			Location: pulumi.String("global"),
			Project:  pulumi.String("my-project-name"),
		})
		if err != nil {
			return err
		}
		cryptoKey, err := kms.NewCryptoKey(ctx, "crypto_key", &kms.CryptoKeyArgs{
			Name:    pulumi.String("crypto-key"),
			KeyRing: keyRing.ID(),
			Purpose: pulumi.String("ASYMMETRIC_SIGN"),
			VersionTemplate: &kms.CryptoKeyVersionTemplateArgs{
				Algorithm: pulumi.String("EC_SIGN_P384_SHA384"),
			},
		})
		if err != nil {
			return err
		}
		serviceAccount, err := accessapproval.GetProjectServiceAccount(ctx, &accessapproval.GetProjectServiceAccountArgs{
			ProjectId: "my-project-name",
		}, nil)
		if err != nil {
			return err
		}
		iam, err := kms.NewCryptoKeyIAMMember(ctx, "iam", &kms.CryptoKeyIAMMemberArgs{
			CryptoKeyId: cryptoKey.ID(),
			Role:        pulumi.String("roles/cloudkms.signerVerifier"),
			Member:      pulumi.Sprintf("serviceAccount:%v", serviceAccount.AccountEmail),
		})
		if err != nil {
			return err
		}
		cryptoKeyVersion := kms.GetKMSCryptoKeyVersionOutput(ctx, kms.GetKMSCryptoKeyVersionOutputArgs{
			CryptoKey: cryptoKey.ID(),
		}, nil)
		_, err = projects.NewAccessApprovalSettings(ctx, "project_access_approval", &projects.AccessApprovalSettingsArgs{
			ProjectId: pulumi.String("my-project-name"),
			ActiveKeyVersion: pulumi.String(cryptoKeyVersion.ApplyT(func(cryptoKeyVersion kms.GetKMSCryptoKeyVersionResult) (*string, error) {
				return &cryptoKeyVersion.Name, nil
			}).(pulumi.StringPtrOutput)),
			EnrolledServices: projects.AccessApprovalSettingsEnrolledServiceArray{
				&projects.AccessApprovalSettingsEnrolledServiceArgs{
					CloudProduct: pulumi.String("all"),
				},
			},
		}, pulumi.DependsOn([]pulumi.Resource{
			iam,
		}))
		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 keyRing = new Gcp.Kms.KeyRing("key_ring", new()
    {
        Name = "key-ring",
        Location = "global",
        Project = "my-project-name",
    });
    var cryptoKey = new Gcp.Kms.CryptoKey("crypto_key", new()
    {
        Name = "crypto-key",
        KeyRing = keyRing.Id,
        Purpose = "ASYMMETRIC_SIGN",
        VersionTemplate = new Gcp.Kms.Inputs.CryptoKeyVersionTemplateArgs
        {
            Algorithm = "EC_SIGN_P384_SHA384",
        },
    });
    var serviceAccount = Gcp.AccessApproval.GetProjectServiceAccount.Invoke(new()
    {
        ProjectId = "my-project-name",
    });
    var iam = new Gcp.Kms.CryptoKeyIAMMember("iam", new()
    {
        CryptoKeyId = cryptoKey.Id,
        Role = "roles/cloudkms.signerVerifier",
        Member = $"serviceAccount:{serviceAccount.Apply(getProjectServiceAccountResult => getProjectServiceAccountResult.AccountEmail)}",
    });
    var cryptoKeyVersion = Gcp.Kms.GetKMSCryptoKeyVersion.Invoke(new()
    {
        CryptoKey = cryptoKey.Id,
    });
    var projectAccessApproval = new Gcp.Projects.AccessApprovalSettings("project_access_approval", new()
    {
        ProjectId = "my-project-name",
        ActiveKeyVersion = cryptoKeyVersion.Apply(getKMSCryptoKeyVersionResult => getKMSCryptoKeyVersionResult.Name),
        EnrolledServices = new[]
        {
            new Gcp.Projects.Inputs.AccessApprovalSettingsEnrolledServiceArgs
            {
                CloudProduct = "all",
            },
        },
    }, new CustomResourceOptions
    {
        DependsOn =
        {
            iam,
        },
    });
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.gcp.kms.KeyRing;
import com.pulumi.gcp.kms.KeyRingArgs;
import com.pulumi.gcp.kms.CryptoKey;
import com.pulumi.gcp.kms.CryptoKeyArgs;
import com.pulumi.gcp.kms.inputs.CryptoKeyVersionTemplateArgs;
import com.pulumi.gcp.accessapproval.AccessapprovalFunctions;
import com.pulumi.gcp.accessapproval.inputs.GetProjectServiceAccountArgs;
import com.pulumi.gcp.kms.CryptoKeyIAMMember;
import com.pulumi.gcp.kms.CryptoKeyIAMMemberArgs;
import com.pulumi.gcp.kms.KmsFunctions;
import com.pulumi.gcp.kms.inputs.GetKMSCryptoKeyVersionArgs;
import com.pulumi.gcp.projects.AccessApprovalSettings;
import com.pulumi.gcp.projects.AccessApprovalSettingsArgs;
import com.pulumi.gcp.projects.inputs.AccessApprovalSettingsEnrolledServiceArgs;
import com.pulumi.resources.CustomResourceOptions;
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 keyRing = new KeyRing("keyRing", KeyRingArgs.builder()
            .name("key-ring")
            .location("global")
            .project("my-project-name")
            .build());
        var cryptoKey = new CryptoKey("cryptoKey", CryptoKeyArgs.builder()
            .name("crypto-key")
            .keyRing(keyRing.id())
            .purpose("ASYMMETRIC_SIGN")
            .versionTemplate(CryptoKeyVersionTemplateArgs.builder()
                .algorithm("EC_SIGN_P384_SHA384")
                .build())
            .build());
        final var serviceAccount = AccessapprovalFunctions.getProjectServiceAccount(GetProjectServiceAccountArgs.builder()
            .projectId("my-project-name")
            .build());
        var iam = new CryptoKeyIAMMember("iam", CryptoKeyIAMMemberArgs.builder()
            .cryptoKeyId(cryptoKey.id())
            .role("roles/cloudkms.signerVerifier")
            .member(String.format("serviceAccount:%s", serviceAccount.applyValue(getProjectServiceAccountResult -> getProjectServiceAccountResult.accountEmail())))
            .build());
        final var cryptoKeyVersion = KmsFunctions.getKMSCryptoKeyVersion(GetKMSCryptoKeyVersionArgs.builder()
            .cryptoKey(cryptoKey.id())
            .build());
        var projectAccessApproval = new AccessApprovalSettings("projectAccessApproval", AccessApprovalSettingsArgs.builder()
            .projectId("my-project-name")
            .activeKeyVersion(cryptoKeyVersion.applyValue(getKMSCryptoKeyVersionResult -> getKMSCryptoKeyVersionResult).applyValue(cryptoKeyVersion -> cryptoKeyVersion.applyValue(getKMSCryptoKeyVersionResult -> getKMSCryptoKeyVersionResult.name())))
            .enrolledServices(AccessApprovalSettingsEnrolledServiceArgs.builder()
                .cloudProduct("all")
                .build())
            .build(), CustomResourceOptions.builder()
                .dependsOn(iam)
                .build());
    }
}
resources:
  keyRing:
    type: gcp:kms:KeyRing
    name: key_ring
    properties:
      name: key-ring
      location: global
      project: my-project-name
  cryptoKey:
    type: gcp:kms:CryptoKey
    name: crypto_key
    properties:
      name: crypto-key
      keyRing: ${keyRing.id}
      purpose: ASYMMETRIC_SIGN
      versionTemplate:
        algorithm: EC_SIGN_P384_SHA384
  iam:
    type: gcp:kms:CryptoKeyIAMMember
    properties:
      cryptoKeyId: ${cryptoKey.id}
      role: roles/cloudkms.signerVerifier
      member: serviceAccount:${serviceAccount.accountEmail}
  projectAccessApproval:
    type: gcp:projects:AccessApprovalSettings
    name: project_access_approval
    properties:
      projectId: my-project-name
      activeKeyVersion: ${cryptoKeyVersion.name}
      enrolledServices:
        - cloudProduct: all
    options:
      dependsOn:
        - ${iam}
variables:
  serviceAccount:
    fn::invoke:
      function: gcp:accessapproval:getProjectServiceAccount
      arguments:
        projectId: my-project-name
  cryptoKeyVersion:
    fn::invoke:
      function: gcp:kms:getKMSCryptoKeyVersion
      arguments:
        cryptoKey: ${cryptoKey.id}
Create AccessApprovalSettings Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new AccessApprovalSettings(name: string, args: AccessApprovalSettingsArgs, opts?: CustomResourceOptions);@overload
def AccessApprovalSettings(resource_name: str,
                           args: AccessApprovalSettingsArgs,
                           opts: Optional[ResourceOptions] = None)
@overload
def AccessApprovalSettings(resource_name: str,
                           opts: Optional[ResourceOptions] = None,
                           enrolled_services: Optional[Sequence[AccessApprovalSettingsEnrolledServiceArgs]] = None,
                           project_id: Optional[str] = None,
                           active_key_version: Optional[str] = None,
                           notification_emails: Optional[Sequence[str]] = None,
                           project: Optional[str] = None)func NewAccessApprovalSettings(ctx *Context, name string, args AccessApprovalSettingsArgs, opts ...ResourceOption) (*AccessApprovalSettings, error)public AccessApprovalSettings(string name, AccessApprovalSettingsArgs args, CustomResourceOptions? opts = null)
public AccessApprovalSettings(String name, AccessApprovalSettingsArgs args)
public AccessApprovalSettings(String name, AccessApprovalSettingsArgs args, CustomResourceOptions options)
type: gcp:projects:AccessApprovalSettings
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 AccessApprovalSettingsArgs
- 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 AccessApprovalSettingsArgs
- 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 AccessApprovalSettingsArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args AccessApprovalSettingsArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args AccessApprovalSettingsArgs
- 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 exampleaccessApprovalSettingsResourceResourceFromProjectsaccessApprovalSettings = new Gcp.Projects.AccessApprovalSettings("exampleaccessApprovalSettingsResourceResourceFromProjectsaccessApprovalSettings", new()
{
    EnrolledServices = new[]
    {
        new Gcp.Projects.Inputs.AccessApprovalSettingsEnrolledServiceArgs
        {
            CloudProduct = "string",
            EnrollmentLevel = "string",
        },
    },
    ProjectId = "string",
    ActiveKeyVersion = "string",
    NotificationEmails = new[]
    {
        "string",
    },
});
example, err := projects.NewAccessApprovalSettings(ctx, "exampleaccessApprovalSettingsResourceResourceFromProjectsaccessApprovalSettings", &projects.AccessApprovalSettingsArgs{
	EnrolledServices: projects.AccessApprovalSettingsEnrolledServiceArray{
		&projects.AccessApprovalSettingsEnrolledServiceArgs{
			CloudProduct:    pulumi.String("string"),
			EnrollmentLevel: pulumi.String("string"),
		},
	},
	ProjectId:        pulumi.String("string"),
	ActiveKeyVersion: pulumi.String("string"),
	NotificationEmails: pulumi.StringArray{
		pulumi.String("string"),
	},
})
var exampleaccessApprovalSettingsResourceResourceFromProjectsaccessApprovalSettings = new AccessApprovalSettings("exampleaccessApprovalSettingsResourceResourceFromProjectsaccessApprovalSettings", AccessApprovalSettingsArgs.builder()
    .enrolledServices(AccessApprovalSettingsEnrolledServiceArgs.builder()
        .cloudProduct("string")
        .enrollmentLevel("string")
        .build())
    .projectId("string")
    .activeKeyVersion("string")
    .notificationEmails("string")
    .build());
exampleaccess_approval_settings_resource_resource_from_projectsaccess_approval_settings = gcp.projects.AccessApprovalSettings("exampleaccessApprovalSettingsResourceResourceFromProjectsaccessApprovalSettings",
    enrolled_services=[{
        "cloud_product": "string",
        "enrollment_level": "string",
    }],
    project_id="string",
    active_key_version="string",
    notification_emails=["string"])
const exampleaccessApprovalSettingsResourceResourceFromProjectsaccessApprovalSettings = new gcp.projects.AccessApprovalSettings("exampleaccessApprovalSettingsResourceResourceFromProjectsaccessApprovalSettings", {
    enrolledServices: [{
        cloudProduct: "string",
        enrollmentLevel: "string",
    }],
    projectId: "string",
    activeKeyVersion: "string",
    notificationEmails: ["string"],
});
type: gcp:projects:AccessApprovalSettings
properties:
    activeKeyVersion: string
    enrolledServices:
        - cloudProduct: string
          enrollmentLevel: string
    notificationEmails:
        - string
    projectId: string
AccessApprovalSettings Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The AccessApprovalSettings resource accepts the following input properties:
- EnrolledServices List<AccessApproval Settings Enrolled Service> 
- A list of Google Cloud Services for which the given resource has Access Approval enrolled. Access requests for the resource given by name against any of these services contained here will be required to have explicit approval. Enrollment can only be done on an all or nothing basis. A maximum of 10 enrolled services will be enforced, to be expanded as the set of supported services is expanded. Structure is documented below.
- ProjectId string
- ID of the project of the access approval settings.
- ActiveKey stringVersion 
- The asymmetric crypto key version to use for signing approval requests. Empty active_key_version indicates that a Google-managed key should be used for signing. This property will be ignored if set by an ancestor of the resource, and new non-empty values may not be set.
- NotificationEmails List<string>
- A list of email addresses to which notifications relating to approval requests should be sent. Notifications relating to a resource will be sent to all emails in the settings of ancestor resources of that resource. A maximum of 50 email addresses are allowed.
- Project string
- Project id.
- EnrolledServices []AccessApproval Settings Enrolled Service Args 
- A list of Google Cloud Services for which the given resource has Access Approval enrolled. Access requests for the resource given by name against any of these services contained here will be required to have explicit approval. Enrollment can only be done on an all or nothing basis. A maximum of 10 enrolled services will be enforced, to be expanded as the set of supported services is expanded. Structure is documented below.
- ProjectId string
- ID of the project of the access approval settings.
- ActiveKey stringVersion 
- The asymmetric crypto key version to use for signing approval requests. Empty active_key_version indicates that a Google-managed key should be used for signing. This property will be ignored if set by an ancestor of the resource, and new non-empty values may not be set.
- NotificationEmails []string
- A list of email addresses to which notifications relating to approval requests should be sent. Notifications relating to a resource will be sent to all emails in the settings of ancestor resources of that resource. A maximum of 50 email addresses are allowed.
- Project string
- Project id.
- enrolledServices List<AccessApproval Settings Enrolled Service> 
- A list of Google Cloud Services for which the given resource has Access Approval enrolled. Access requests for the resource given by name against any of these services contained here will be required to have explicit approval. Enrollment can only be done on an all or nothing basis. A maximum of 10 enrolled services will be enforced, to be expanded as the set of supported services is expanded. Structure is documented below.
- projectId String
- ID of the project of the access approval settings.
- activeKey StringVersion 
- The asymmetric crypto key version to use for signing approval requests. Empty active_key_version indicates that a Google-managed key should be used for signing. This property will be ignored if set by an ancestor of the resource, and new non-empty values may not be set.
- notificationEmails List<String>
- A list of email addresses to which notifications relating to approval requests should be sent. Notifications relating to a resource will be sent to all emails in the settings of ancestor resources of that resource. A maximum of 50 email addresses are allowed.
- project String
- Project id.
- enrolledServices AccessApproval Settings Enrolled Service[] 
- A list of Google Cloud Services for which the given resource has Access Approval enrolled. Access requests for the resource given by name against any of these services contained here will be required to have explicit approval. Enrollment can only be done on an all or nothing basis. A maximum of 10 enrolled services will be enforced, to be expanded as the set of supported services is expanded. Structure is documented below.
- projectId string
- ID of the project of the access approval settings.
- activeKey stringVersion 
- The asymmetric crypto key version to use for signing approval requests. Empty active_key_version indicates that a Google-managed key should be used for signing. This property will be ignored if set by an ancestor of the resource, and new non-empty values may not be set.
- notificationEmails string[]
- A list of email addresses to which notifications relating to approval requests should be sent. Notifications relating to a resource will be sent to all emails in the settings of ancestor resources of that resource. A maximum of 50 email addresses are allowed.
- project string
- Project id.
- enrolled_services Sequence[AccessApproval Settings Enrolled Service Args] 
- A list of Google Cloud Services for which the given resource has Access Approval enrolled. Access requests for the resource given by name against any of these services contained here will be required to have explicit approval. Enrollment can only be done on an all or nothing basis. A maximum of 10 enrolled services will be enforced, to be expanded as the set of supported services is expanded. Structure is documented below.
- project_id str
- ID of the project of the access approval settings.
- active_key_ strversion 
- The asymmetric crypto key version to use for signing approval requests. Empty active_key_version indicates that a Google-managed key should be used for signing. This property will be ignored if set by an ancestor of the resource, and new non-empty values may not be set.
- notification_emails Sequence[str]
- A list of email addresses to which notifications relating to approval requests should be sent. Notifications relating to a resource will be sent to all emails in the settings of ancestor resources of that resource. A maximum of 50 email addresses are allowed.
- project str
- Project id.
- enrolledServices List<Property Map>
- A list of Google Cloud Services for which the given resource has Access Approval enrolled. Access requests for the resource given by name against any of these services contained here will be required to have explicit approval. Enrollment can only be done on an all or nothing basis. A maximum of 10 enrolled services will be enforced, to be expanded as the set of supported services is expanded. Structure is documented below.
- projectId String
- ID of the project of the access approval settings.
- activeKey StringVersion 
- The asymmetric crypto key version to use for signing approval requests. Empty active_key_version indicates that a Google-managed key should be used for signing. This property will be ignored if set by an ancestor of the resource, and new non-empty values may not be set.
- notificationEmails List<String>
- A list of email addresses to which notifications relating to approval requests should be sent. Notifications relating to a resource will be sent to all emails in the settings of ancestor resources of that resource. A maximum of 50 email addresses are allowed.
- project String
- Project id.
Outputs
All input properties are implicitly available as output properties. Additionally, the AccessApprovalSettings resource produces the following output properties:
- AncestorHas boolActive Key Version 
- If the field is true, that indicates that an ancestor of this Project has set active_key_version.
- EnrolledAncestor bool
- If the field is true, that indicates that at least one service is enrolled for Access Approval in one or more ancestors of the Project.
- Id string
- The provider-assigned unique ID for this managed resource.
- InvalidKey boolVersion 
- If the field is true, that indicates that there is some configuration issue with the active_key_version configured on this Project (e.g. it doesn't exist or the Access Approval service account doesn't have the correct permissions on it, etc.) This key version is not necessarily the effective key version at this level, as key versions are inherited top-down.
- Name string
- The resource name of the settings. Format is "projects/{project_id}/accessApprovalSettings"
- AncestorHas boolActive Key Version 
- If the field is true, that indicates that an ancestor of this Project has set active_key_version.
- EnrolledAncestor bool
- If the field is true, that indicates that at least one service is enrolled for Access Approval in one or more ancestors of the Project.
- Id string
- The provider-assigned unique ID for this managed resource.
- InvalidKey boolVersion 
- If the field is true, that indicates that there is some configuration issue with the active_key_version configured on this Project (e.g. it doesn't exist or the Access Approval service account doesn't have the correct permissions on it, etc.) This key version is not necessarily the effective key version at this level, as key versions are inherited top-down.
- Name string
- The resource name of the settings. Format is "projects/{project_id}/accessApprovalSettings"
- ancestorHas BooleanActive Key Version 
- If the field is true, that indicates that an ancestor of this Project has set active_key_version.
- enrolledAncestor Boolean
- If the field is true, that indicates that at least one service is enrolled for Access Approval in one or more ancestors of the Project.
- id String
- The provider-assigned unique ID for this managed resource.
- invalidKey BooleanVersion 
- If the field is true, that indicates that there is some configuration issue with the active_key_version configured on this Project (e.g. it doesn't exist or the Access Approval service account doesn't have the correct permissions on it, etc.) This key version is not necessarily the effective key version at this level, as key versions are inherited top-down.
- name String
- The resource name of the settings. Format is "projects/{project_id}/accessApprovalSettings"
- ancestorHas booleanActive Key Version 
- If the field is true, that indicates that an ancestor of this Project has set active_key_version.
- enrolledAncestor boolean
- If the field is true, that indicates that at least one service is enrolled for Access Approval in one or more ancestors of the Project.
- id string
- The provider-assigned unique ID for this managed resource.
- invalidKey booleanVersion 
- If the field is true, that indicates that there is some configuration issue with the active_key_version configured on this Project (e.g. it doesn't exist or the Access Approval service account doesn't have the correct permissions on it, etc.) This key version is not necessarily the effective key version at this level, as key versions are inherited top-down.
- name string
- The resource name of the settings. Format is "projects/{project_id}/accessApprovalSettings"
- ancestor_has_ boolactive_ key_ version 
- If the field is true, that indicates that an ancestor of this Project has set active_key_version.
- enrolled_ancestor bool
- If the field is true, that indicates that at least one service is enrolled for Access Approval in one or more ancestors of the Project.
- id str
- The provider-assigned unique ID for this managed resource.
- invalid_key_ boolversion 
- If the field is true, that indicates that there is some configuration issue with the active_key_version configured on this Project (e.g. it doesn't exist or the Access Approval service account doesn't have the correct permissions on it, etc.) This key version is not necessarily the effective key version at this level, as key versions are inherited top-down.
- name str
- The resource name of the settings. Format is "projects/{project_id}/accessApprovalSettings"
- ancestorHas BooleanActive Key Version 
- If the field is true, that indicates that an ancestor of this Project has set active_key_version.
- enrolledAncestor Boolean
- If the field is true, that indicates that at least one service is enrolled for Access Approval in one or more ancestors of the Project.
- id String
- The provider-assigned unique ID for this managed resource.
- invalidKey BooleanVersion 
- If the field is true, that indicates that there is some configuration issue with the active_key_version configured on this Project (e.g. it doesn't exist or the Access Approval service account doesn't have the correct permissions on it, etc.) This key version is not necessarily the effective key version at this level, as key versions are inherited top-down.
- name String
- The resource name of the settings. Format is "projects/{project_id}/accessApprovalSettings"
Look up Existing AccessApprovalSettings Resource
Get an existing AccessApprovalSettings 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?: AccessApprovalSettingsState, opts?: CustomResourceOptions): AccessApprovalSettings@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        active_key_version: Optional[str] = None,
        ancestor_has_active_key_version: Optional[bool] = None,
        enrolled_ancestor: Optional[bool] = None,
        enrolled_services: Optional[Sequence[AccessApprovalSettingsEnrolledServiceArgs]] = None,
        invalid_key_version: Optional[bool] = None,
        name: Optional[str] = None,
        notification_emails: Optional[Sequence[str]] = None,
        project: Optional[str] = None,
        project_id: Optional[str] = None) -> AccessApprovalSettingsfunc GetAccessApprovalSettings(ctx *Context, name string, id IDInput, state *AccessApprovalSettingsState, opts ...ResourceOption) (*AccessApprovalSettings, error)public static AccessApprovalSettings Get(string name, Input<string> id, AccessApprovalSettingsState? state, CustomResourceOptions? opts = null)public static AccessApprovalSettings get(String name, Output<String> id, AccessApprovalSettingsState state, CustomResourceOptions options)resources:  _:    type: gcp:projects:AccessApprovalSettings    get:      id: ${id}- 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.
- ActiveKey stringVersion 
- The asymmetric crypto key version to use for signing approval requests. Empty active_key_version indicates that a Google-managed key should be used for signing. This property will be ignored if set by an ancestor of the resource, and new non-empty values may not be set.
- AncestorHas boolActive Key Version 
- If the field is true, that indicates that an ancestor of this Project has set active_key_version.
- EnrolledAncestor bool
- If the field is true, that indicates that at least one service is enrolled for Access Approval in one or more ancestors of the Project.
- EnrolledServices List<AccessApproval Settings Enrolled Service> 
- A list of Google Cloud Services for which the given resource has Access Approval enrolled. Access requests for the resource given by name against any of these services contained here will be required to have explicit approval. Enrollment can only be done on an all or nothing basis. A maximum of 10 enrolled services will be enforced, to be expanded as the set of supported services is expanded. Structure is documented below.
- InvalidKey boolVersion 
- If the field is true, that indicates that there is some configuration issue with the active_key_version configured on this Project (e.g. it doesn't exist or the Access Approval service account doesn't have the correct permissions on it, etc.) This key version is not necessarily the effective key version at this level, as key versions are inherited top-down.
- Name string
- The resource name of the settings. Format is "projects/{project_id}/accessApprovalSettings"
- NotificationEmails List<string>
- A list of email addresses to which notifications relating to approval requests should be sent. Notifications relating to a resource will be sent to all emails in the settings of ancestor resources of that resource. A maximum of 50 email addresses are allowed.
- Project string
- Project id.
- ProjectId string
- ID of the project of the access approval settings.
- ActiveKey stringVersion 
- The asymmetric crypto key version to use for signing approval requests. Empty active_key_version indicates that a Google-managed key should be used for signing. This property will be ignored if set by an ancestor of the resource, and new non-empty values may not be set.
- AncestorHas boolActive Key Version 
- If the field is true, that indicates that an ancestor of this Project has set active_key_version.
- EnrolledAncestor bool
- If the field is true, that indicates that at least one service is enrolled for Access Approval in one or more ancestors of the Project.
- EnrolledServices []AccessApproval Settings Enrolled Service Args 
- A list of Google Cloud Services for which the given resource has Access Approval enrolled. Access requests for the resource given by name against any of these services contained here will be required to have explicit approval. Enrollment can only be done on an all or nothing basis. A maximum of 10 enrolled services will be enforced, to be expanded as the set of supported services is expanded. Structure is documented below.
- InvalidKey boolVersion 
- If the field is true, that indicates that there is some configuration issue with the active_key_version configured on this Project (e.g. it doesn't exist or the Access Approval service account doesn't have the correct permissions on it, etc.) This key version is not necessarily the effective key version at this level, as key versions are inherited top-down.
- Name string
- The resource name of the settings. Format is "projects/{project_id}/accessApprovalSettings"
- NotificationEmails []string
- A list of email addresses to which notifications relating to approval requests should be sent. Notifications relating to a resource will be sent to all emails in the settings of ancestor resources of that resource. A maximum of 50 email addresses are allowed.
- Project string
- Project id.
- ProjectId string
- ID of the project of the access approval settings.
- activeKey StringVersion 
- The asymmetric crypto key version to use for signing approval requests. Empty active_key_version indicates that a Google-managed key should be used for signing. This property will be ignored if set by an ancestor of the resource, and new non-empty values may not be set.
- ancestorHas BooleanActive Key Version 
- If the field is true, that indicates that an ancestor of this Project has set active_key_version.
- enrolledAncestor Boolean
- If the field is true, that indicates that at least one service is enrolled for Access Approval in one or more ancestors of the Project.
- enrolledServices List<AccessApproval Settings Enrolled Service> 
- A list of Google Cloud Services for which the given resource has Access Approval enrolled. Access requests for the resource given by name against any of these services contained here will be required to have explicit approval. Enrollment can only be done on an all or nothing basis. A maximum of 10 enrolled services will be enforced, to be expanded as the set of supported services is expanded. Structure is documented below.
- invalidKey BooleanVersion 
- If the field is true, that indicates that there is some configuration issue with the active_key_version configured on this Project (e.g. it doesn't exist or the Access Approval service account doesn't have the correct permissions on it, etc.) This key version is not necessarily the effective key version at this level, as key versions are inherited top-down.
- name String
- The resource name of the settings. Format is "projects/{project_id}/accessApprovalSettings"
- notificationEmails List<String>
- A list of email addresses to which notifications relating to approval requests should be sent. Notifications relating to a resource will be sent to all emails in the settings of ancestor resources of that resource. A maximum of 50 email addresses are allowed.
- project String
- Project id.
- projectId String
- ID of the project of the access approval settings.
- activeKey stringVersion 
- The asymmetric crypto key version to use for signing approval requests. Empty active_key_version indicates that a Google-managed key should be used for signing. This property will be ignored if set by an ancestor of the resource, and new non-empty values may not be set.
- ancestorHas booleanActive Key Version 
- If the field is true, that indicates that an ancestor of this Project has set active_key_version.
- enrolledAncestor boolean
- If the field is true, that indicates that at least one service is enrolled for Access Approval in one or more ancestors of the Project.
- enrolledServices AccessApproval Settings Enrolled Service[] 
- A list of Google Cloud Services for which the given resource has Access Approval enrolled. Access requests for the resource given by name against any of these services contained here will be required to have explicit approval. Enrollment can only be done on an all or nothing basis. A maximum of 10 enrolled services will be enforced, to be expanded as the set of supported services is expanded. Structure is documented below.
- invalidKey booleanVersion 
- If the field is true, that indicates that there is some configuration issue with the active_key_version configured on this Project (e.g. it doesn't exist or the Access Approval service account doesn't have the correct permissions on it, etc.) This key version is not necessarily the effective key version at this level, as key versions are inherited top-down.
- name string
- The resource name of the settings. Format is "projects/{project_id}/accessApprovalSettings"
- notificationEmails string[]
- A list of email addresses to which notifications relating to approval requests should be sent. Notifications relating to a resource will be sent to all emails in the settings of ancestor resources of that resource. A maximum of 50 email addresses are allowed.
- project string
- Project id.
- projectId string
- ID of the project of the access approval settings.
- active_key_ strversion 
- The asymmetric crypto key version to use for signing approval requests. Empty active_key_version indicates that a Google-managed key should be used for signing. This property will be ignored if set by an ancestor of the resource, and new non-empty values may not be set.
- ancestor_has_ boolactive_ key_ version 
- If the field is true, that indicates that an ancestor of this Project has set active_key_version.
- enrolled_ancestor bool
- If the field is true, that indicates that at least one service is enrolled for Access Approval in one or more ancestors of the Project.
- enrolled_services Sequence[AccessApproval Settings Enrolled Service Args] 
- A list of Google Cloud Services for which the given resource has Access Approval enrolled. Access requests for the resource given by name against any of these services contained here will be required to have explicit approval. Enrollment can only be done on an all or nothing basis. A maximum of 10 enrolled services will be enforced, to be expanded as the set of supported services is expanded. Structure is documented below.
- invalid_key_ boolversion 
- If the field is true, that indicates that there is some configuration issue with the active_key_version configured on this Project (e.g. it doesn't exist or the Access Approval service account doesn't have the correct permissions on it, etc.) This key version is not necessarily the effective key version at this level, as key versions are inherited top-down.
- name str
- The resource name of the settings. Format is "projects/{project_id}/accessApprovalSettings"
- notification_emails Sequence[str]
- A list of email addresses to which notifications relating to approval requests should be sent. Notifications relating to a resource will be sent to all emails in the settings of ancestor resources of that resource. A maximum of 50 email addresses are allowed.
- project str
- Project id.
- project_id str
- ID of the project of the access approval settings.
- activeKey StringVersion 
- The asymmetric crypto key version to use for signing approval requests. Empty active_key_version indicates that a Google-managed key should be used for signing. This property will be ignored if set by an ancestor of the resource, and new non-empty values may not be set.
- ancestorHas BooleanActive Key Version 
- If the field is true, that indicates that an ancestor of this Project has set active_key_version.
- enrolledAncestor Boolean
- If the field is true, that indicates that at least one service is enrolled for Access Approval in one or more ancestors of the Project.
- enrolledServices List<Property Map>
- A list of Google Cloud Services for which the given resource has Access Approval enrolled. Access requests for the resource given by name against any of these services contained here will be required to have explicit approval. Enrollment can only be done on an all or nothing basis. A maximum of 10 enrolled services will be enforced, to be expanded as the set of supported services is expanded. Structure is documented below.
- invalidKey BooleanVersion 
- If the field is true, that indicates that there is some configuration issue with the active_key_version configured on this Project (e.g. it doesn't exist or the Access Approval service account doesn't have the correct permissions on it, etc.) This key version is not necessarily the effective key version at this level, as key versions are inherited top-down.
- name String
- The resource name of the settings. Format is "projects/{project_id}/accessApprovalSettings"
- notificationEmails List<String>
- A list of email addresses to which notifications relating to approval requests should be sent. Notifications relating to a resource will be sent to all emails in the settings of ancestor resources of that resource. A maximum of 50 email addresses are allowed.
- project String
- Project id.
- projectId String
- ID of the project of the access approval settings.
Supporting Types
AccessApprovalSettingsEnrolledService, AccessApprovalSettingsEnrolledServiceArgs          
- CloudProduct string
- The product for which Access Approval will be enrolled. Allowed values are listed (case-sensitive): all appengine.googleapis.com bigquery.googleapis.com bigtable.googleapis.com cloudkms.googleapis.com compute.googleapis.com dataflow.googleapis.com iam.googleapis.com pubsub.googleapis.com storage.googleapis.com
- EnrollmentLevel string
- The enrollment level of the service.
Default value is BLOCK_ALL. Possible values are:BLOCK_ALL.
- CloudProduct string
- The product for which Access Approval will be enrolled. Allowed values are listed (case-sensitive): all appengine.googleapis.com bigquery.googleapis.com bigtable.googleapis.com cloudkms.googleapis.com compute.googleapis.com dataflow.googleapis.com iam.googleapis.com pubsub.googleapis.com storage.googleapis.com
- EnrollmentLevel string
- The enrollment level of the service.
Default value is BLOCK_ALL. Possible values are:BLOCK_ALL.
- cloudProduct String
- The product for which Access Approval will be enrolled. Allowed values are listed (case-sensitive): all appengine.googleapis.com bigquery.googleapis.com bigtable.googleapis.com cloudkms.googleapis.com compute.googleapis.com dataflow.googleapis.com iam.googleapis.com pubsub.googleapis.com storage.googleapis.com
- enrollmentLevel String
- The enrollment level of the service.
Default value is BLOCK_ALL. Possible values are:BLOCK_ALL.
- cloudProduct string
- The product for which Access Approval will be enrolled. Allowed values are listed (case-sensitive): all appengine.googleapis.com bigquery.googleapis.com bigtable.googleapis.com cloudkms.googleapis.com compute.googleapis.com dataflow.googleapis.com iam.googleapis.com pubsub.googleapis.com storage.googleapis.com
- enrollmentLevel string
- The enrollment level of the service.
Default value is BLOCK_ALL. Possible values are:BLOCK_ALL.
- cloud_product str
- The product for which Access Approval will be enrolled. Allowed values are listed (case-sensitive): all appengine.googleapis.com bigquery.googleapis.com bigtable.googleapis.com cloudkms.googleapis.com compute.googleapis.com dataflow.googleapis.com iam.googleapis.com pubsub.googleapis.com storage.googleapis.com
- enrollment_level str
- The enrollment level of the service.
Default value is BLOCK_ALL. Possible values are:BLOCK_ALL.
- cloudProduct String
- The product for which Access Approval will be enrolled. Allowed values are listed (case-sensitive): all appengine.googleapis.com bigquery.googleapis.com bigtable.googleapis.com cloudkms.googleapis.com compute.googleapis.com dataflow.googleapis.com iam.googleapis.com pubsub.googleapis.com storage.googleapis.com
- enrollmentLevel String
- The enrollment level of the service.
Default value is BLOCK_ALL. Possible values are:BLOCK_ALL.
Import
ProjectSettings can be imported using any of these accepted formats:
- projects/{{project_id}}/accessApprovalSettings
- {{project_id}}
When using the pulumi import command, ProjectSettings can be imported using one of the formats above. For example:
$ pulumi import gcp:projects/accessApprovalSettings:AccessApprovalSettings default projects/{{project_id}}/accessApprovalSettings
$ pulumi import gcp:projects/accessApprovalSettings:AccessApprovalSettings default {{project_id}}
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-betaTerraform Provider.