Package com.pulumi.gcp.cloudasset
Class ProjectFeed
- java.lang.Object
-
- com.pulumi.resources.Resource
-
- com.pulumi.resources.CustomResource
-
- com.pulumi.gcp.cloudasset.ProjectFeed
-
public class ProjectFeed extends com.pulumi.resources.CustomResource
Describes a Cloud Asset Inventory feed used to to listen to asset updates. To get more information about ProjectFeed, see: * [API documentation](https://cloud.google.com/asset-inventory/docs/reference/rest/) * How-to Guides * [Official Documentation](https://cloud.google.com/asset-inventory/docs) ## Example Usage ## Import ProjectFeed can be imported using any of these accepted formats ```sh $ pulumi import gcp:cloudasset/projectFeed:ProjectFeed default projects/{{project}}/feeds/{{name}} ``` ```sh $ pulumi import gcp:cloudasset/projectFeed:ProjectFeed default {{project}}/{{name}} ``` ```sh $ pulumi import gcp:cloudasset/projectFeed:ProjectFeed default {{name}} ```
-
-
Constructor Summary
Constructors Constructor Description ProjectFeed(java.lang.String name)
ProjectFeed(java.lang.String name, ProjectFeedArgs args)
ProjectFeed(java.lang.String name, ProjectFeedArgs args, com.pulumi.resources.CustomResourceOptions options)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description com.pulumi.core.Output<java.util.Optional<java.util.List<java.lang.String>>>
assetNames()
com.pulumi.core.Output<java.util.Optional<java.util.List<java.lang.String>>>
assetTypes()
com.pulumi.core.Output<java.util.Optional<java.lang.String>>
billingProject()
com.pulumi.core.Output<java.util.Optional<ProjectFeedCondition>>
condition()
com.pulumi.core.Output<java.util.Optional<java.lang.String>>
contentType()
com.pulumi.core.Output<java.lang.String>
feedId()
com.pulumi.core.Output<ProjectFeedFeedOutputConfig>
feedOutputConfig()
static ProjectFeed
get(java.lang.String name, com.pulumi.core.Output<java.lang.String> id, ProjectFeedState state, com.pulumi.resources.CustomResourceOptions options)
Get an existing Host resource's state with the given name, ID, and optional extra properties used to qualify the lookup.com.pulumi.core.Output<java.lang.String>
name()
com.pulumi.core.Output<java.lang.String>
project()
-
-
-
Constructor Detail
-
ProjectFeed
public ProjectFeed(java.lang.String name)
- Parameters:
name
- The _unique_ name of the resulting resource.
-
ProjectFeed
public ProjectFeed(java.lang.String name, ProjectFeedArgs args)
- Parameters:
name
- The _unique_ name of the resulting resource.args
- The arguments to use to populate this resource's properties.
-
ProjectFeed
public ProjectFeed(java.lang.String name, ProjectFeedArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options)
- Parameters:
name
- The _unique_ name of the resulting resource.args
- The arguments to use to populate this resource's properties.options
- A bag of options that control this resource's behavior.
-
-
Method Detail
-
assetNames
public com.pulumi.core.Output<java.util.Optional<java.util.List<java.lang.String>>> assetNames()
- Returns:
- A list of the full names of the assets to receive updates. You must specify either or both of assetNames and assetTypes. Only asset updates matching specified assetNames and assetTypes are exported to the feed. For example: //compute.googleapis.com/projects/my_project_123/zones/zone1/instances/instance1. See https://cloud.google.com/apis/design/resourceNames#fullResourceName for more info.
-
assetTypes
public com.pulumi.core.Output<java.util.Optional<java.util.List<java.lang.String>>> assetTypes()
- Returns:
- A list of types of the assets to receive updates. You must specify either or both of assetNames and assetTypes. Only asset updates matching specified assetNames and assetTypes are exported to the feed. For example: "compute.googleapis.com/Disk" See https://cloud.google.com/asset-inventory/docs/supported-asset-types for a list of all supported asset types.
-
billingProject
public com.pulumi.core.Output<java.util.Optional<java.lang.String>> billingProject()
- Returns:
- The project whose identity will be used when sending messages to the destination pubsub topic. It also specifies the project for API enablement check, quota, and billing. If not specified, the resource's project will be used.
-
condition
public com.pulumi.core.Output<java.util.Optional<ProjectFeedCondition>> condition()
- Returns:
- A condition which determines whether an asset update should be published. If specified, an asset will be returned only when the expression evaluates to true. When set, expression field must be a valid CEL expression on a TemporalAsset with name temporal_asset. Example: a Feed with expression "temporal_asset.deleted == true" will only publish Asset deletions. Other fields of condition are optional. Structure is documented below.
-
contentType
public com.pulumi.core.Output<java.util.Optional<java.lang.String>> contentType()
- Returns:
- Asset content type. If not specified, no content but the asset name and type will be returned. Possible values are `CONTENT_TYPE_UNSPECIFIED`, `RESOURCE`, `IAM_POLICY`, `ORG_POLICY`, and `ACCESS_POLICY`.
-
feedId
public com.pulumi.core.Output<java.lang.String> feedId()
- Returns:
- This is the client-assigned asset feed identifier and it needs to be unique under a specific parent.
-
feedOutputConfig
public com.pulumi.core.Output<ProjectFeedFeedOutputConfig> feedOutputConfig()
- Returns:
- Output configuration for asset feed destination. Structure is documented below.
-
name
public com.pulumi.core.Output<java.lang.String> name()
- Returns:
- The format will be projects/{projectNumber}/feeds/{client-assigned_feed_identifier}.
-
project
public com.pulumi.core.Output<java.lang.String> project()
- Returns:
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
-
get
public static ProjectFeed get(java.lang.String name, com.pulumi.core.Output<java.lang.String> id, @Nullable ProjectFeedState state, @Nullable com.pulumi.resources.CustomResourceOptions options)
Get an existing Host resource's state with the given name, ID, and optional extra properties used to qualify the lookup.- Parameters:
name
- The _unique_ name of the resulting resource.id
- The _unique_ provider ID of the resource to lookup.state
-options
- Optional settings to control the behavior of the CustomResource.
-
-