import * as pulumi from "@pulumi/pulumi"; /** * Manages trusted access between an AWS service and AWS Organizations. * * > **Note:** AWS recommends enabling and disabling trusted access for a service through the service's own console or its AWS CLI commands or API operation equivalents, rather than using this resource directly. Using the service-specific tooling ensures that the service can perform the required steps when enabling trusted access (e.g. creating any required resources) and any required clean up operations when disabling trusted access. See the [AWS Organizations User Guide](https://docs.aws.amazon.com/organizations/latest/userguide/orgs_integrate_services.html) for more details. The complete list of AWS services that support trusted access with AWS Organizations is available in the [Services that work with Organizations](https://docs.aws.amazon.com/organizations/latest/userguide/orgs_integrate_services_list.html) page. * * > **Note:** This resource requires the Organizations management account. * * > **NOTE:** Terraform provides both this standalone AWS service access resource and exclusive service access defined in-line in the `aws.organizations.Organization` resource via the `awsServiceAccessPrincipals` argument. At this time, you cannot use the service access in conjunction with this resource otherwise it will cause a perpetual difference in plan output. You can optionally use the generic Terraform resource lifecycle configuration block with `ignoreChanges` in the `aws.organizations.Organization` resource to manage additional service access via this resource. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as aws from "@pulumi/aws"; * * const example = new aws.organizations.AwsServiceAccess("example", {servicePrincipal: "tagpolicies.tag.amazonaws.com"}); * ``` * * ## Import * * ### Identity Schema * * #### Required * * * `servicePrincipal` (String) Service principal name of the AWS service for which you want to enable integration. * * #### Optional * * * `accountId` (String) AWS Account where this resource is managed. * * Using `pulumi import`, import trusted access using the `servicePrincipal`. For example: * * ```sh * $ pulumi import aws:organizations/awsServiceAccess:AwsServiceAccess example tagpolicies.tag.amazonaws.com * ``` */ export declare class AwsServiceAccess extends pulumi.CustomResource { /** * Get an existing AwsServiceAccess resource's state with the given name, ID, and optional extra * properties used to qualify the lookup. * * @param name The _unique_ name of the resulting resource. * @param id The _unique_ provider ID of the resource to lookup. * @param state Any extra arguments used during the lookup. * @param opts Optional settings to control the behavior of the CustomResource. */ static get(name: string, id: pulumi.Input, state?: AwsServiceAccessState, opts?: pulumi.CustomResourceOptions): AwsServiceAccess; /** * Returns true if the given object is an instance of AwsServiceAccess. This is designed to work even * when multiple copies of the Pulumi SDK have been loaded into the same process. */ static isInstance(obj: any): obj is AwsServiceAccess; /** * Date and time that the service was enabled, in RFC 3339 format. */ readonly dateEnabled: pulumi.Output; /** * Service principal of the AWS service to enable. For example, `tagpolicies.tag.amazonaws.com`. Changing this value will force a new resource. */ readonly servicePrincipal: pulumi.Output; /** * Create a AwsServiceAccess resource with the given unique name, arguments, and options. * * @param name The _unique_ name of the resource. * @param args The arguments to use to populate this resource's properties. * @param opts A bag of options that control this resource's behavior. */ constructor(name: string, args: AwsServiceAccessArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering AwsServiceAccess resources. */ export interface AwsServiceAccessState { /** * Date and time that the service was enabled, in RFC 3339 format. */ dateEnabled?: pulumi.Input; /** * Service principal of the AWS service to enable. For example, `tagpolicies.tag.amazonaws.com`. Changing this value will force a new resource. */ servicePrincipal?: pulumi.Input; } /** * The set of arguments for constructing a AwsServiceAccess resource. */ export interface AwsServiceAccessArgs { /** * Service principal of the AWS service to enable. For example, `tagpolicies.tag.amazonaws.com`. Changing this value will force a new resource. */ servicePrincipal: pulumi.Input; } //# sourceMappingURL=awsServiceAccess.d.ts.map