Agent
Manages an AWS DataSync Agent deployed on premises.
NOTE: One of
activation_keyorip_addressmust be provided for resource creation (agent activation). Neither is required for resource import. If usingip_address, this provider must be able to make an HTTP (port 80) GET request to the specified IP address from where it is running. The agent will turn off that HTTP server after activation.
Example Usage
using Pulumi;
using Aws = Pulumi.Aws;
class MyStack : Stack
{
public MyStack()
{
var example = new Aws.DataSync.Agent("example", new Aws.DataSync.AgentArgs
{
IpAddress = "1.2.3.4",
});
}
}
package main
import (
"github.com/pulumi/pulumi-aws/sdk/v2/go/aws/datasync"
"github.com/pulumi/pulumi/sdk/v2/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := datasync.NewAgent(ctx, "example", &datasync.AgentArgs{
IpAddress: pulumi.String("1.2.3.4"),
})
if err != nil {
return err
}
return nil
})
}import pulumi
import pulumi_aws as aws
example = aws.datasync.Agent("example", ip_address="1.2.3.4")import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const example = new aws.datasync.Agent("example", {
ipAddress: "1.2.3.4",
});Create a Agent Resource
new Agent(name: string, args?: AgentArgs, opts?: CustomResourceOptions);def Agent(resource_name, opts=None, activation_key=None, ip_address=None, name=None, tags=None, __props__=None);public Agent(string name, AgentArgs? args = null, CustomResourceOptions? opts = null)- name string
- The unique name of the resource.
- args AgentArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- opts ResourceOptions
- A bag of options that control this resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args AgentArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args AgentArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
Agent Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Programming Model docs.
Inputs
The Agent resource accepts the following input properties:
- Activation
Key string DataSync Agent activation key during resource creation. Conflicts with
ip_address. If anip_addressis provided instead, the provider will retrieve theactivation_keyas part of the resource creation.- Ip
Address string DataSync Agent IP address to retrieve activation key during resource creation. Conflicts with
activation_key. DataSync Agent must be accessible on port 80 from where the provider is running.- Name string
Name of the DataSync Agent.
- Dictionary<string, string>
Key-value pairs of resource tags to assign to the DataSync Agent.
- Activation
Key string DataSync Agent activation key during resource creation. Conflicts with
ip_address. If anip_addressis provided instead, the provider will retrieve theactivation_keyas part of the resource creation.- Ip
Address string DataSync Agent IP address to retrieve activation key during resource creation. Conflicts with
activation_key. DataSync Agent must be accessible on port 80 from where the provider is running.- Name string
Name of the DataSync Agent.
- map[string]string
Key-value pairs of resource tags to assign to the DataSync Agent.
- activation
Key string DataSync Agent activation key during resource creation. Conflicts with
ip_address. If anip_addressis provided instead, the provider will retrieve theactivation_keyas part of the resource creation.- ip
Address string DataSync Agent IP address to retrieve activation key during resource creation. Conflicts with
activation_key. DataSync Agent must be accessible on port 80 from where the provider is running.- name string
Name of the DataSync Agent.
- {[key: string]: string}
Key-value pairs of resource tags to assign to the DataSync Agent.
- activation_
key str DataSync Agent activation key during resource creation. Conflicts with
ip_address. If anip_addressis provided instead, the provider will retrieve theactivation_keyas part of the resource creation.- ip_
address str DataSync Agent IP address to retrieve activation key during resource creation. Conflicts with
activation_key. DataSync Agent must be accessible on port 80 from where the provider is running.- name str
Name of the DataSync Agent.
- Dict[str, str]
Key-value pairs of resource tags to assign to the DataSync Agent.
Outputs
All input properties are implicitly available as output properties. Additionally, the Agent resource produces the following output properties:
Look up an Existing Agent Resource
Get an existing Agent 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?: AgentState, opts?: CustomResourceOptions): Agentstatic get(resource_name, id, opts=None, activation_key=None, arn=None, ip_address=None, name=None, tags=None, __props__=None);func GetAgent(ctx *Context, name string, id IDInput, state *AgentState, opts ...ResourceOption) (*Agent, error)public static Agent Get(string name, Input<string> id, AgentState? state, CustomResourceOptions? opts = null)- 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.
The following state arguments are supported:
- Activation
Key string DataSync Agent activation key during resource creation. Conflicts with
ip_address. If anip_addressis provided instead, the provider will retrieve theactivation_keyas part of the resource creation.- Arn string
Amazon Resource Name (ARN) of the DataSync Agent.
- Ip
Address string DataSync Agent IP address to retrieve activation key during resource creation. Conflicts with
activation_key. DataSync Agent must be accessible on port 80 from where the provider is running.- Name string
Name of the DataSync Agent.
- Dictionary<string, string>
Key-value pairs of resource tags to assign to the DataSync Agent.
- Activation
Key string DataSync Agent activation key during resource creation. Conflicts with
ip_address. If anip_addressis provided instead, the provider will retrieve theactivation_keyas part of the resource creation.- Arn string
Amazon Resource Name (ARN) of the DataSync Agent.
- Ip
Address string DataSync Agent IP address to retrieve activation key during resource creation. Conflicts with
activation_key. DataSync Agent must be accessible on port 80 from where the provider is running.- Name string
Name of the DataSync Agent.
- map[string]string
Key-value pairs of resource tags to assign to the DataSync Agent.
- activation
Key string DataSync Agent activation key during resource creation. Conflicts with
ip_address. If anip_addressis provided instead, the provider will retrieve theactivation_keyas part of the resource creation.- arn string
Amazon Resource Name (ARN) of the DataSync Agent.
- ip
Address string DataSync Agent IP address to retrieve activation key during resource creation. Conflicts with
activation_key. DataSync Agent must be accessible on port 80 from where the provider is running.- name string
Name of the DataSync Agent.
- {[key: string]: string}
Key-value pairs of resource tags to assign to the DataSync Agent.
- activation_
key str DataSync Agent activation key during resource creation. Conflicts with
ip_address. If anip_addressis provided instead, the provider will retrieve theactivation_keyas part of the resource creation.- arn str
Amazon Resource Name (ARN) of the DataSync Agent.
- ip_
address str DataSync Agent IP address to retrieve activation key during resource creation. Conflicts with
activation_key. DataSync Agent must be accessible on port 80 from where the provider is running.- name str
Name of the DataSync Agent.
- Dict[str, str]
Key-value pairs of resource tags to assign to the DataSync Agent.
Package Details
- Repository
- https://github.com/pulumi/pulumi-aws
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
awsTerraform Provider.