aws.verifiedaccess.InstanceTrustProviderAttachment
Explore with Pulumi AI
Resource for managing a Verified Access Instance Trust Provider Attachment.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const example = new aws.verifiedaccess.Instance("example", {});
const exampleTrustProvider = new aws.verifiedaccess.TrustProvider("example", {
deviceTrustProviderType: "jamf",
policyReferenceName: "example",
trustProviderType: "device",
deviceOptions: {
tenantId: "example",
},
});
const exampleInstanceTrustProviderAttachment = new aws.verifiedaccess.InstanceTrustProviderAttachment("example", {
verifiedaccessInstanceId: example.id,
verifiedaccessTrustProviderId: exampleTrustProvider.id,
});
import pulumi
import pulumi_aws as aws
example = aws.verifiedaccess.Instance("example")
example_trust_provider = aws.verifiedaccess.TrustProvider("example",
device_trust_provider_type="jamf",
policy_reference_name="example",
trust_provider_type="device",
device_options={
"tenant_id": "example",
})
example_instance_trust_provider_attachment = aws.verifiedaccess.InstanceTrustProviderAttachment("example",
verifiedaccess_instance_id=example.id,
verifiedaccess_trust_provider_id=example_trust_provider.id)
package main
import (
"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/verifiedaccess"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
example, err := verifiedaccess.NewInstance(ctx, "example", nil)
if err != nil {
return err
}
exampleTrustProvider, err := verifiedaccess.NewTrustProvider(ctx, "example", &verifiedaccess.TrustProviderArgs{
DeviceTrustProviderType: pulumi.String("jamf"),
PolicyReferenceName: pulumi.String("example"),
TrustProviderType: pulumi.String("device"),
DeviceOptions: &verifiedaccess.TrustProviderDeviceOptionsArgs{
TenantId: pulumi.String("example"),
},
})
if err != nil {
return err
}
_, err = verifiedaccess.NewInstanceTrustProviderAttachment(ctx, "example", &verifiedaccess.InstanceTrustProviderAttachmentArgs{
VerifiedaccessInstanceId: example.ID(),
VerifiedaccessTrustProviderId: exampleTrustProvider.ID(),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aws = Pulumi.Aws;
return await Deployment.RunAsync(() =>
{
var example = new Aws.VerifiedAccess.Instance("example");
var exampleTrustProvider = new Aws.VerifiedAccess.TrustProvider("example", new()
{
DeviceTrustProviderType = "jamf",
PolicyReferenceName = "example",
TrustProviderType = "device",
DeviceOptions = new Aws.VerifiedAccess.Inputs.TrustProviderDeviceOptionsArgs
{
TenantId = "example",
},
});
var exampleInstanceTrustProviderAttachment = new Aws.VerifiedAccess.InstanceTrustProviderAttachment("example", new()
{
VerifiedaccessInstanceId = example.Id,
VerifiedaccessTrustProviderId = exampleTrustProvider.Id,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.verifiedaccess.Instance;
import com.pulumi.aws.verifiedaccess.TrustProvider;
import com.pulumi.aws.verifiedaccess.TrustProviderArgs;
import com.pulumi.aws.verifiedaccess.inputs.TrustProviderDeviceOptionsArgs;
import com.pulumi.aws.verifiedaccess.InstanceTrustProviderAttachment;
import com.pulumi.aws.verifiedaccess.InstanceTrustProviderAttachmentArgs;
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 example = new Instance("example");
var exampleTrustProvider = new TrustProvider("exampleTrustProvider", TrustProviderArgs.builder()
.deviceTrustProviderType("jamf")
.policyReferenceName("example")
.trustProviderType("device")
.deviceOptions(TrustProviderDeviceOptionsArgs.builder()
.tenantId("example")
.build())
.build());
var exampleInstanceTrustProviderAttachment = new InstanceTrustProviderAttachment("exampleInstanceTrustProviderAttachment", InstanceTrustProviderAttachmentArgs.builder()
.verifiedaccessInstanceId(example.id())
.verifiedaccessTrustProviderId(exampleTrustProvider.id())
.build());
}
}
resources:
example:
type: aws:verifiedaccess:Instance
exampleTrustProvider:
type: aws:verifiedaccess:TrustProvider
name: example
properties:
deviceTrustProviderType: jamf
policyReferenceName: example
trustProviderType: device
deviceOptions:
tenantId: example
exampleInstanceTrustProviderAttachment:
type: aws:verifiedaccess:InstanceTrustProviderAttachment
name: example
properties:
verifiedaccessInstanceId: ${example.id}
verifiedaccessTrustProviderId: ${exampleTrustProvider.id}
Create InstanceTrustProviderAttachment Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new InstanceTrustProviderAttachment(name: string, args: InstanceTrustProviderAttachmentArgs, opts?: CustomResourceOptions);
@overload
def InstanceTrustProviderAttachment(resource_name: str,
args: InstanceTrustProviderAttachmentArgs,
opts: Optional[ResourceOptions] = None)
@overload
def InstanceTrustProviderAttachment(resource_name: str,
opts: Optional[ResourceOptions] = None,
verifiedaccess_instance_id: Optional[str] = None,
verifiedaccess_trust_provider_id: Optional[str] = None)
func NewInstanceTrustProviderAttachment(ctx *Context, name string, args InstanceTrustProviderAttachmentArgs, opts ...ResourceOption) (*InstanceTrustProviderAttachment, error)
public InstanceTrustProviderAttachment(string name, InstanceTrustProviderAttachmentArgs args, CustomResourceOptions? opts = null)
public InstanceTrustProviderAttachment(String name, InstanceTrustProviderAttachmentArgs args)
public InstanceTrustProviderAttachment(String name, InstanceTrustProviderAttachmentArgs args, CustomResourceOptions options)
type: aws:verifiedaccess:InstanceTrustProviderAttachment
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 InstanceTrustProviderAttachmentArgs
- 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 InstanceTrustProviderAttachmentArgs
- 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 InstanceTrustProviderAttachmentArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args InstanceTrustProviderAttachmentArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args InstanceTrustProviderAttachmentArgs
- 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 instanceTrustProviderAttachmentResource = new Aws.VerifiedAccess.InstanceTrustProviderAttachment("instanceTrustProviderAttachmentResource", new()
{
VerifiedaccessInstanceId = "string",
VerifiedaccessTrustProviderId = "string",
});
example, err := verifiedaccess.NewInstanceTrustProviderAttachment(ctx, "instanceTrustProviderAttachmentResource", &verifiedaccess.InstanceTrustProviderAttachmentArgs{
VerifiedaccessInstanceId: pulumi.String("string"),
VerifiedaccessTrustProviderId: pulumi.String("string"),
})
var instanceTrustProviderAttachmentResource = new InstanceTrustProviderAttachment("instanceTrustProviderAttachmentResource", InstanceTrustProviderAttachmentArgs.builder()
.verifiedaccessInstanceId("string")
.verifiedaccessTrustProviderId("string")
.build());
instance_trust_provider_attachment_resource = aws.verifiedaccess.InstanceTrustProviderAttachment("instanceTrustProviderAttachmentResource",
verifiedaccess_instance_id="string",
verifiedaccess_trust_provider_id="string")
const instanceTrustProviderAttachmentResource = new aws.verifiedaccess.InstanceTrustProviderAttachment("instanceTrustProviderAttachmentResource", {
verifiedaccessInstanceId: "string",
verifiedaccessTrustProviderId: "string",
});
type: aws:verifiedaccess:InstanceTrustProviderAttachment
properties:
verifiedaccessInstanceId: string
verifiedaccessTrustProviderId: string
InstanceTrustProviderAttachment 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 InstanceTrustProviderAttachment resource accepts the following input properties:
- Verifiedaccess
Instance stringId - The ID of the Verified Access instance to attach the Trust Provider to.
- Verifiedaccess
Trust stringProvider Id - The ID of the Verified Access trust provider.
- Verifiedaccess
Instance stringId - The ID of the Verified Access instance to attach the Trust Provider to.
- Verifiedaccess
Trust stringProvider Id - The ID of the Verified Access trust provider.
- verifiedaccess
Instance StringId - The ID of the Verified Access instance to attach the Trust Provider to.
- verifiedaccess
Trust StringProvider Id - The ID of the Verified Access trust provider.
- verifiedaccess
Instance stringId - The ID of the Verified Access instance to attach the Trust Provider to.
- verifiedaccess
Trust stringProvider Id - The ID of the Verified Access trust provider.
- verifiedaccess_
instance_ strid - The ID of the Verified Access instance to attach the Trust Provider to.
- verifiedaccess_
trust_ strprovider_ id - The ID of the Verified Access trust provider.
- verifiedaccess
Instance StringId - The ID of the Verified Access instance to attach the Trust Provider to.
- verifiedaccess
Trust StringProvider Id - The ID of the Verified Access trust provider.
Outputs
All input properties are implicitly available as output properties. Additionally, the InstanceTrustProviderAttachment resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
- id string
- The provider-assigned unique ID for this managed resource.
- id str
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
Look up Existing InstanceTrustProviderAttachment Resource
Get an existing InstanceTrustProviderAttachment 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?: InstanceTrustProviderAttachmentState, opts?: CustomResourceOptions): InstanceTrustProviderAttachment
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
verifiedaccess_instance_id: Optional[str] = None,
verifiedaccess_trust_provider_id: Optional[str] = None) -> InstanceTrustProviderAttachment
func GetInstanceTrustProviderAttachment(ctx *Context, name string, id IDInput, state *InstanceTrustProviderAttachmentState, opts ...ResourceOption) (*InstanceTrustProviderAttachment, error)
public static InstanceTrustProviderAttachment Get(string name, Input<string> id, InstanceTrustProviderAttachmentState? state, CustomResourceOptions? opts = null)
public static InstanceTrustProviderAttachment get(String name, Output<String> id, InstanceTrustProviderAttachmentState 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.
- Verifiedaccess
Instance stringId - The ID of the Verified Access instance to attach the Trust Provider to.
- Verifiedaccess
Trust stringProvider Id - The ID of the Verified Access trust provider.
- Verifiedaccess
Instance stringId - The ID of the Verified Access instance to attach the Trust Provider to.
- Verifiedaccess
Trust stringProvider Id - The ID of the Verified Access trust provider.
- verifiedaccess
Instance StringId - The ID of the Verified Access instance to attach the Trust Provider to.
- verifiedaccess
Trust StringProvider Id - The ID of the Verified Access trust provider.
- verifiedaccess
Instance stringId - The ID of the Verified Access instance to attach the Trust Provider to.
- verifiedaccess
Trust stringProvider Id - The ID of the Verified Access trust provider.
- verifiedaccess_
instance_ strid - The ID of the Verified Access instance to attach the Trust Provider to.
- verifiedaccess_
trust_ strprovider_ id - The ID of the Verified Access trust provider.
- verifiedaccess
Instance StringId - The ID of the Verified Access instance to attach the Trust Provider to.
- verifiedaccess
Trust StringProvider Id - The ID of the Verified Access trust provider.
Import
Using pulumi import
, import Verified Access Instance Trust Provider Attachments using the verifiedaccess_instance_id
and verifiedaccess_trust_provider_id
separated by a forward slash (/
). For example:
$ pulumi import aws:verifiedaccess/instanceTrustProviderAttachment:InstanceTrustProviderAttachment example vai-1234567890abcdef0/vatp-8012925589
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- AWS Classic pulumi/pulumi-aws
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
aws
Terraform Provider.